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
1
vote
1 answer

Mex doesn't recognize type 'Matrix'

I'm trying to create a mex file for a c function which is supposed to be a Matlab interface for Chaco http://www.cerfacs.fr/algor/Softs/MESHPART/ (Chaco is a graph partitioning software). I modified the Makefile quite a bit to make it work with my…
TNM
  • 1,361
  • 3
  • 15
  • 25
1
vote
1 answer

Undocumented flag in CC

When compiling a file using a new version of Informix-4GL it launches the following command link the generated object into a executable. cc -qchars=signed -D_H_LOCALEDEF -DASIAN -DAIX_43 -DAIX_53 -DUSE_PROTOTYPES \ -Dsigflag=ix_os_sigflag…
1
vote
2 answers

installing pylinkgrammar on mac

I am encountering an error when attempting to install pylinkgrammar on a Mac: pylinkgrammar/link_grammar_wrap.c:2955:10: fatal error: 'link-grammar/link-includes.h' file not found #include 1 error…
iddober
  • 1,254
  • 4
  • 23
  • 43
1
vote
1 answer

Segments of /proc/self/map to actual code

I get the theory about the columns address, permissions, offset, device, etc... But I haven't found the relationship of each segment to the program itself, for example consider the following map: 08048000-08049000 r-xp 00000000 08:01 132351 …
Christopher Francisco
  • 15,672
  • 28
  • 94
  • 206
1
vote
1 answer

unrecognized rule error in lex {lineo++;}

I've got some errors in my lex code, maybe someone know what i made wrong ... 16 %% 17 {ws} {/*no action and no return */} 18 {} 19 {newline} {lineo++;} 20 {number} {tokenval=atoi(yytext); return(NUM);} 21 {id} { 22 …
Epredator
  • 109
  • 3
  • 8
1
vote
2 answers

Undefined symbol error with inline function Solaris(SunOS 5.9)

I have defined an inline function copy_string in file cpstr.c and created .so file (libtest.so) for cpstr.c file. While trying to link this libtest.so for test.c, I am getting an error as ild: (undefined symbol) char*copy_string(char*,const char*)…
1
vote
0 answers

Control MIDI message with AppleScript

The idea of this originally to convert NRPN+/- message to CC (with MIDIPipe) MidiPipe converts the NRPN messages to CC97 1 and CC96 1 Set the new Channel + CC + Value on runme(message) if (item 2 of message = 96) then set message to {178, 22,…
1
vote
1 answer

Reinstall g++ on mac

I managed to nuke the g++ cc c++ gcc in my /usr/bin folder on my Mac running 10.9.1. I've tried running brew install gcc-49, apple-gcc42 and downloading Xcode's Command Line tools. All three haven't worked. I've seen some sources say that gcc on OSX…
1
vote
1 answer

Is there a documentation about "Config_heavy.pl" keys?

After installing perl you can find a Config_heavy.pl file e.g. in /usr/lib/perl5/5.18/mach/Config_heavy.pl and I wonder if there is a commentation of all key/value pairs one can find in it. The of them are clear, but sometimes I'm not sure. Calling…
Jimmy Koerting
  • 1,231
  • 1
  • 14
  • 27
1
vote
1 answer

Use of compiler flag "-static-libgcc"

what is the exact use of -static-libgcc compiler flag in gcc ? In particular, why are they used in Solaris machines ?
Droider
  • 459
  • 2
  • 6
  • 14
1
vote
4 answers

Is this a valid C program?

I wrote a program, where the size of an array is taken as an input from user. #include main() { int x; scanf("%d", &x); int y[x]; /* some stuff */ } This program failed to compile on my school's compiler Turbo C (an…
ShuklaSannidhya
  • 8,572
  • 9
  • 32
  • 45
1
vote
1 answer

Can't compile cc,gcc in ubuntu | no such file or directory

Really need help in this one. When I try to compile using cc, it shows -bash: /usr/bin/cc: No such file or directory but all the necessary files cc,gcc,c++ are present in the /usr/bin directory. I tried to install gcc-multilib package after which…
sree127
  • 421
  • 3
  • 9
  • 25
1
vote
1 answer

gdb can not find source files compiled by cc

I have a source file testcc.c which just print a "Hello, World", I compile it with cc as below cc -g -o testcc testcc.c it works fine when I run it. now I want to debug it with gdb with the following command. gdb testcc I can see the output from…
zdd
  • 8,258
  • 8
  • 46
  • 75
1
vote
2 answers

linking a Python module: difference between linking with `ld` and with `cc`

This works: cc leveldb_ext.cc leveldb_object.cc -o leveldb.so -I /usr/include/python2.7 -lpython2.7 -lleveldb -lsnappy -shared -lc This does not work: cc -I /usr/include/python2.7 -g -c leveldb_ext.cc leveldb_object.cc ld -shared -o leveldb.so…
Albert
  • 65,406
  • 61
  • 242
  • 386
1
vote
1 answer

suppress solaris CC linker warning symbol XXX has differing sizes

I got this linker error message: ld: warning: symbol `_VersioN' has differing sizes: (file ./libsfc/libssl48.so value=0x16; file ./libsfc/libsipc.so value=0x15); When I try to do link things: CC -o foo foo.o bar.o .... ld: warning: symbol…
Daniel YC Lin
  • 15,050
  • 18
  • 63
  • 96