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].
Questions tagged [cc]
290 questions
2
votes
2 answers
Why does the const clause not work if I try to use it when I want to protect the modification of a vector?
In the book I am studying it says that if I pass a vector to a function, the name of the vector is always treated as a pointer.
In fact it's so.
But I can't understand why in the first function the const clause is allowed by the compiler, while in…

Roberto Rocco
- 450
- 2
- 11
2
votes
1 answer
Why can cc compile a c++ program?
I have a makefile for macOS and Linux, which contains the following command:
cc -std=c++14 foo.cpp bar.cpp
And it compiles fine. foo.cpp and bar.cpp are, as the name suggests C++ files and it contains C++11 syntax. The compilation works fine.
Now…

Daniel Stephens
- 2,371
- 8
- 34
- 86
2
votes
1 answer
OpenCV library error when compiling with CMake and Make: cannot find -lopencv_bgsegm
I was trying to build a repo located HERE. As per instructions, I created a CMakeLists, and updated the directory addresses inside. I was not sure about the OpenCV path, but found two candidates and inserted both.
Cmake is good, but when doing…

Tina J
- 4,983
- 13
- 59
- 125
2
votes
2 answers
CC\GCC compiled executable cannot run on my machine?
In a nutshell, I want to start a side project and I need to make .exe of my code. I manage to but whenever I try to click it gives the error:
This app can't run on your pc
The normal terminal runs the executable perfectly.
I already know it is a…

Xidot
- 21
- 2
2
votes
1 answer
Tensorflow C++ r1.13 build error: 'TopK' is not a member of 'tensorflow::ops'
This is my first time trying to build a C++ Tensorflow project, and figuring out how to build TF libraries was already too much work so I used the github tensorflow_cc project, which provides a docker image with TF C++ api already built for Ubuntu…

B Custer
- 241
- 2
- 7
2
votes
2 answers
-pipe flag of cc on FreeBSD 10.x
Yesterday i was working on FreeBSD jails. According to the documentation, I ran command make buildworld and it compiled lots of files using cc.
In logs i saw something like:
cc ... -pipe ... file.c
Now I'm curious about -pipe flag. I also…

Pouriya
- 1,626
- 11
- 19
2
votes
1 answer
What does '-Olimit 2000' mean for cc
I try to compile an old program (which was compiled by cc) using gcc. In the makefile there is one line like this:
CFLAGS = -O2 -Olimit 2000 -w
There is no '-Olimit 2000' in gcc. I am wondering what does it really mean. Whether it is safe to just…

ericzma
- 763
- 3
- 9
- 23
2
votes
2 answers
Can I safely assume all (or most) "cc" supports "-Wall" on *nix systems?
I want to write in Makefile like this
foo: foo.c
$(CC) -o foo -Wall foo.c
but I'm not sure if all cc implementations support -Wall.

pynexj
- 19,215
- 5
- 38
- 56
2
votes
1 answer
Animate CC HTML5/Canvas controling a nested MovieClip timeline with actionscript
I have a problem i can't seem to wrap my head around.
In the Animate CC Canvas IDE I created a Movieclip with several frames and on each frame is another nested movieclip and ocasionally that also contains other movieclips (all with instance names…

sdenec
- 23
- 1
- 3
2
votes
5 answers
Error in C code error: expression is not assignable
I'm writing a function that is suppose to print out the description of a programs execution. A function in my program uses 0 as a signal for a base-10 numeric conversion.
I would like my program to have friendly output, and tell the user if a…

Matt Hall
- 331
- 1
- 4
- 13
2
votes
1 answer
On Solaris, are libraries compiled with gcc usable the same way as for libs generated with cc?
I am currently trying to compile libxml2 on Solaris. When I run the ./configure script provided with the sources, the gcc and g++ compilers are automatically used. However, I would like to use cc and CC compilers. So I run :
./configure CC=cc…

louisiuol
- 143
- 6
2
votes
2 answers
`man cc`: no info about -Wall and -g flags (Learn C the Hard Way)
I am on exercise 2 of "Learn C the Hard Way. One of the extra credit challenges is:
Read man cc to find out more information on what the flags -Wall and
-g do.
I am on OSX and used man cc to open the manual page but it doesn't have any info…

sixty4bit
- 7,422
- 7
- 33
- 57
2
votes
1 answer
Vimeo captions not working in IE
I have VTT closed captions files that I generated from YouTube. After some edits, I uploaded the .vtt file into my Vimeo version of the video.
I see the captions on Chrome but not in IE. Why?

Ivan Town
- 445
- 8
- 11
2
votes
0 answers
Issue when userAgent specified and two nested pages are opened
This phantomjs code below is give me the following error:
Assertion failed: (_consumed <= scratch_size), function _hb_coretext_shape, file src/hb-coretext.cc, line 764.
Abort trap: 6
I don't understand what I'm doing wrong.
var querystring =…

ThomasReggi
- 55,053
- 85
- 237
- 424
2
votes
1 answer
How to determine macro value at compilation time in C?
If I have a macro in my C:
#ifdef SIGDET
#if SIGDET == 1
isSignal = 1; /*Termination detected by signals*/
#endif
#endif
How can I set the value at compilation time? Is it some parameter to the compiler?

Niklas Rosencrantz
- 25,640
- 75
- 229
- 424