Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [cc]

cc is a common name for a C compiler executable or driver. It is the default for the $(CC) make variable. For email CC fields, please use [carbon-copy]. For Adobe CC, use [creative-cloud].

cc
0 votes
1 answer
45 views

How can I add a "std=c99" flag to cc when compiling using cargo?

I'm trying to install ripgrep (link to repo) with the pcre2 feature from source. To do so I run the command cargo build --release --feature 'pcre2' to build the exec. When doing so, cargo tries to ...
m.raynal's user avatar
  • 3,055
1 vote
1 answer
64 views

Error while loading shared libraries: libpq.so.5

I am trying to write a basic client for Postgres integration in C using libpq, I compiled the libraries following the Client-only installation on this page and so far so good, I compile my program ...
Lorenzo Cesana's user avatar
0 votes
0 answers
64 views

Running gtest on AIX

I am trying to run some simple gtest tests on an AIX machine: #include <gtest/gtest.h> int add(int a, int b) { return a + b; } // Test case to check addition function TEST(AdditionTest, ...
Swarna Gowri's user avatar
1 vote
0 answers
16 views

red hat 9 overlaying of C uninitialized data broken (linker issue) - any solutions other than now using -fcommon?

Since the beginning of time (or at least 1970) unix/linux C has allowed non/un initialized data object to be overlayed in multiple object files even if different sizes. Apparently this is now "...
Jon Power's user avatar
0 votes
0 answers
80 views

Same versions of Linux, CC, LD have different link order rules

I have a desktop PC and a laptop PC both running identical Linuxes (Ubuntu 22.04.4 LTS) but the desktop has few extra bits and pieces loaded, I would have thought irrelevant, both are running gcc-12 ...
John Collins's user avatar
0 votes
0 answers
98 views

How do you get the SBCL foreign function interface example from the SBCL User Manual to work?

I posted the following wanting to experiment with the foriegn functin interface in SBCL. Several good comments came forth. I left out something I didn't understand to be important. My problem working ...
kd4ttc's user avatar
  • 1,155
0 votes
1 answer
81 views

cc compiler can't find link library in provided path

I am trying to link against the Tensorflow library. Here is my makefile: TF_PATH=/home/wade/.local/lib/python3.10/site-packages/tensorflow CFLAGS=-I$(TF_PATH)/include/ -L$(TF_PATH)/ CC=cc artifaction ...
Rylan Yancey's user avatar
2 votes
1 answer
105 views

How does a C compiler parse code like `arr[]`?

It is well known that function declarations like void foo (int arr[]) and void foo (int* arr) are identical since array variables are just pointers to the first element of the array. My question is ...
EE18's user avatar
  • 147
0 votes
0 answers
57 views

configure: error: C compiler cannot create executables ERROR on FreeBSD 14.0-RELEASE

I'm not able to install sudo on my FreeBSD 14.0-RELEASE-p3 amd64 marietto:/usr/ports/security/sudo # make ===> License sudo accepted by the user ===> sudo-1.9.15p4 depends on file: /usr/...
mister_smith's user avatar
1 vote
0 answers
192 views

Linking with 'cc' failed (when trying to compile a simple 'hello_world' for Android terminal)

I'm trying to test what an Android terminal application would be writing the simplest program (hello_world) in Rust. I have downloaded the Android NDK, which I have placed in ~/Android/Sdk/ndk/26.1....
Alberto's user avatar
  • 73
0 votes
0 answers
57 views

configuring petsc with --CC compiler (mopish) on silicon Apple Mac M1 MAX

configuring petsc with following command on zsh ./configure \ --CC=/opt/homebrew/Cellar/mpich/4.1.2/bin/mpicc --CXX=/opt/homebrew/Cellar/mpich/4.1.2/bin/mpicxx --FC=opt/homebrew/Cellar/mpich/4.1....
Andy96's user avatar
  • 13
1 vote
0 answers
161 views

How to compile Rust from Linux to Macos?

I have a simple file main.rs, with the print Hello, World from Rust!. Under my system - Linux, everything compiles without any problems, both through rustc and through cargo. But when I want to make a ...
Daniil Screpchenko's user avatar
0 votes
0 answers
167 views

The prelaunchtask c/c++ :gcc.exe build active file terminated with exit code -1

#include<iostream> using namespace std; int main() { int a[10][10], b[10][10], null[10][10]; int r, c; cout << "Enter the number of rows"<< endl; cin >&...
Rakibul Islam's user avatar
0 votes
1 answer
953 views

How can I completely remove rust from my computer?

I was trying to build c++ code inside rust, and somehow I made some changes and now I am not even able to do simple cargo build command as it's providing me the following error error: could not ...
Ankit Kumar's user avatar
2 votes
0 answers
64 views

Machine-readable metadata autogenerated by Creative Commons (CC) not W3C-compliant

I added a CC license to my website using the Choose a License tool hosted by CC: <a rel="license" target="_blank" href="http://creativecommons.org/licenses/by/4.0/">...
rupumped's user avatar
  • 226

15 30 50 per page
1
2 3 4 5
20