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
0
votes
2 answers
Share type across multiple source files - C
I'm relatively new to C and learning as I go. One thing I'm having a hard time with is sharing data across multiple files. I've got the use of extern down with simple things such as character arrays and integers. But what of an instance when it…

Jonny Whatshisface
- 39
- 4
0
votes
1 answer
How to use liblua52 with valac?
I tried to compile a vala file in Ubuntu 14.04 using the valac compiler and:
$ valac -X "-I/usr/include/lua5.2" --pkg lua --pkg gtk+-3.0 main.vala
/home/gabriel/Documents/opera/cpp/tisserand/src/main.vala.c: In function…

Guerreiro
- 143
- 1
- 11
0
votes
0 answers
Inhibit clearing of CC and CFLAGS
I'm trying to build a package with instrumentation. I want to run its test suite with Clang's sanitizers.
I configured as follows:
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}/usr/local/lib/clang/3.4.2/lib/linux
export…

jww
- 97,681
- 90
- 411
- 885
0
votes
1 answer
how can I edit TCP protocol (tcp.cc)
My research is about minimizing End to End retransmission delay by touching Transport Layer Process to Process communication.
I did some changes to tcp.cc , changed window size. the changes i am doing are not affecting. ex: even if i removed tcp.cc…

Shanka
- 23
- 4
0
votes
1 answer
CC Compile not getting the changes I've made in the code
So, I have this c module in which I have modified two things: Added one parameter to a function and added one parameter to a struct.
The thing is that, when compiling using cc (from a script I inherited), I got error messsages wherever my changes…

Neuromante
- 531
- 2
- 12
- 29
0
votes
1 answer
OpenTracker compilation error
I want to compile opentracker(https://erdgeist.org/arts/software/opentracker) on my machine osx 10.9. when run "make" command I get this error:
cc -c -o opentracker.o -I../libowfat -Wall -pipe -Wextra -O3…

Aref Aslani
- 1,560
- 13
- 27
0
votes
1 answer
ns2 exponential distribution in packet size
I have some problem in ns2 about I want make my packetsize follow in exponential ditribution
to accomplish this , I use a Exponential Variable
Here is my code.
set exp [new Agent/Traffic/Exponential]
...
set rng [new RNG]
set rng seed 101
set size…

user3500804
- 11
- 4
0
votes
2 answers
Installing lxml OSX Mavericks 10.9.2
I am trying to install lxml on 10.9.2 Mavericks and i used all the solutions mentioned here before but i seem to get a different error, the argument '-mno-fused-madd' is unknown, i believe it just triggered a warning back then, but now it throws an…

Fady Kamal
- 1,302
- 3
- 13
- 22
0
votes
5 answers
cc compiler issue in C
I am trying to write a simple code to construct a tree in C language. Below is my code snippet.
#include
struct node
{
int data;
struct node *left;
struct node *right;
};
int main()
{
struct node *root = newNode(5);
//struct…

arunb2w
- 1,196
- 9
- 28
0
votes
3 answers
Weird output of char * with getchar to printf
I'm dusting off of my C skills for an upcoming class and I came across this weird output with printf after building a string using getchar. Specifically, any string I try to output gets the same sequence of characters appended to each letter. foo…

Philip Regan
- 5,005
- 2
- 25
- 39
0
votes
1 answer
having errors when compile .cc file to mex in Matlab
I am trying to complie a .cc file to mex, and I am using mex filename command in Matlab. My complier is [1] Lcc-win32 C 2.4.1 in C:\PROGRA~1\MATLAB\R2012b\sys\lcc .
However, there are some errors:
lcc preprocessor error: learn.cc:5 Could not find…

Brendon Tsai
- 1,267
- 1
- 17
- 31
0
votes
1 answer
Difference between cc and cc -c when compiling a C program
I am new to C language and I need to know what is the difference between cc filename.c and cc -c filename.c when compiling a C source code. I know that cc -c command creates an object module, if so how to convert that object module into a…

buddhi weerasinghe
- 677
- 2
- 9
- 17
0
votes
2 answers
Migration from Sun C compiler to gcc
I am in the midst of researching possible pitfalls of migrating from Sun C 5.9 to gcc (GCC) 3.4.6 on a Solaris 10 box for consistency with our other programs. Is there any guide or list of possible pitfalls available which we should look out for?…

Ian T. Small
- 304
- 2
- 16
0
votes
3 answers
Strange behaviour of C code(fgets function)
In my C program, fgets is not reading any data. Please see the below code:
#include
int main()
{
char string[50];
int marks,i,n, limit;
printf("Enter Limit : \n");
scanf("%d", &limit);
FILE *fptr;…

jay
- 3,517
- 5
- 26
- 44
0
votes
1 answer
error when trying to link libraries
I am trying to compile my c code on linux i386.
I have the sqlite3 library at:
/usr/lib/i386-linux-gnu/libsqlite3.so.0
/usr/lib/i386-linux-gnu/libsqlite3.so.0.8.6
but the linker does not find them. I even specified the path manually with the -L…

max
- 9,708
- 15
- 89
- 144