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].

290 questions
2
votes
0 answers

C++ compilation linking error in OS X

I'm attempting to compile an example C++ program in OS X on the terminal, however I'm coming up against an error that I don't understand. My source code looks like this: #include using namespace std; const int NUMBER = 12; int main…
oorst
  • 909
  • 2
  • 7
  • 29
2
votes
1 answer

Linux cc compilation of library in directory within project?

My directory structure looks like the following: -xmllib -libxml++-1.0.a -main.cc ..and I issue the command: cc -lstdc++ -L./xmllib -llibxml++-1.0.a main.cc But then it tells me that it can't find the binary for the library...even though I…
leeand00
  • 25,510
  • 39
  • 140
  • 297
2
votes
2 answers

Pandas Install Error on Mac

When I execute sudo pip install pandas I get the error: creating build/temp.macosx-10.9-intel-2.7/pandas/src/datetime cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv…
AllieCat
  • 3,890
  • 10
  • 31
  • 45
2
votes
1 answer

How to preserve debug symbols when generating shared library

Is there a possibility to preserve debug symbols when generating a shared object from an object file? For example, I'm generating my object file with debug symbols using cc using the implicit target and only adding -g to CFLAGS. Then, I generate the…
Alex C
  • 923
  • 9
  • 23
2
votes
1 answer

Debian cc flat_namespace

How can I install headerdoc on a UNIX system, Debian, when I hit make, it complains cc1: error: unrecognized command line option "-flat_namespace" when I remove that option from Makefile it won't compile.
2
votes
1 answer

Add SDL to my path

I install SDL via brew on my mac but I can't include it! Here is my too easy code: #include int main(){ return 0; } when I compile it with cc, CC could not find SDL.h I found that brew install SDL in Cellar but cc did not check this…
Aryan
  • 2,675
  • 5
  • 24
  • 33
2
votes
0 answers

cpp: error trying to exec 'cc1': execvp: No such file or directory

i face with following error when i build roms model by ./build.bash command. appeared error is cpp: error trying to exec 'cc1': execvp: No such file or directory i use yum install gcc-c++ but it replied that package gcc-c++-4.6.3-2fc16.i686 already…
2
votes
1 answer

Linux CC compiling error

I'm trying to compile a program with the CC compiler, but when running the command in Terminal: cc –o sm hw33.c random.c stopwatch.c –lm I get this error: cc: error: –o: No such file or directory cc: error: sm: No such file or directory cc: error:…
1
vote
2 answers

Modifying a makefile to compile .cc and .cpp files

I am trying to modify my makefile to support .cpp and .cc, however, I keep getting an error such as target `source/systemFuncs.cpp' doesn't match the target pattern I am modifying an existing makefile that support .cc and I want to make it also…
chadb
  • 1,138
  • 3
  • 13
  • 36
1
vote
1 answer

DBD-mysql error: CPU you selected does not support x86-64 instruction set

I am installing DBD-mysql-4.020 perl module on 5.14.2. when running make, I encounter the below error: cc -c -I/u01/app/appadmin/product/perl-5.14.2/lib/site_perl/5.14.2/x86_64-linux/auto/DBI…
spacemtn5
  • 65
  • 1
  • 1
  • 8
1
vote
1 answer

How can I know all available cc_toolchains by default, and how to access info of the selected toolchain in bazel?

Bazel seems to be automatically configure the local system and select a cc_toolchain for me. Is there any way I can know of all available toolchain options so that I can choose another one instead of the toolchain chosen by default? (I assume there…
1
vote
0 answers

Getting "NativeCommandFailed" error when executing program compiled with Mingw64 cc

Executing a Windows executable that was compiled with the cc compiler command (compiler installed with Mingw64 MSYS2 on Windows) results in an unexpected error. I was compiling a slightly modified version of the "smolnes" C program (at…
bytebox
  • 11
  • 2
1
vote
1 answer

Ocaml is not creating .o file

I'm new to ocaml and ubuntu and I'm trying to compile a very simple ocaml file following this tutorial : http://wiki.njh.eu/OCaml_and_SDL The problem is that it's not compiling I have the following error and I don't understand what to do : cc …
1
vote
1 answer

Where is the documentation for writing Eclipse toolchain plugins?

We're running Solaris 2.10 and using the native Solaris build tools (CC & dbx), for which there is no support in Eclipse 8. I up to writing the plugins to support these tools, but I'm having a hard time finding the documentation of the interface…
Steve Broberg
  • 4,255
  • 3
  • 28
  • 40
1
vote
1 answer

Should I use gcc or cc when programming in C?

I searched a little bit and one google search was enough to discover the differences between the gcc and cc compilers, but I did not find the advantages in using one or another to compile C programs Which compiler should I use? and why?
gdor11
  • 43
  • 8