Hello, I have tried both options and this is why its soo frustrating. below i have removed -lstdc++
When i try CC=g++ i get coral_test.c:322: error: at this point in file coral_test.c:326: error: invalid conversion from 'void*' to 'ub1*' coral_test.c:341: error: invalid conversion from 'ub1*' to 'const char*' coral_test.c:341: error: initializing argument 1 of 'size_t strlen(const char*)' hashtab.h:133: error: too many arguments to function 'word hadd()' coral_test.c:347: error: at this point in file hashtab.h:192: error: too many arguments to function 'word hnbucket()' coral_test.c:350: error: at this point in file hashtab.h:162: error: too many arguments to function 'word hfirst()' coral_test.c:352: error: at this point in file hashtab.h:192: error: too many arguments to function 'word hnbucket()' coral_test.c:357: error: at this point in file make: *** [coral_test.o] Error 1 and when i use gcc i get /usr/bin/gcc -g -o coral coral_test.o recycle.o lookupa.o hashtab.o -L/usr/local/Coral/lib -L/usr/local/lib -lcoral -lpcap -lhashtab -lz /usr/bin/ld: Undefined symbols: __Unwind_Resume operator delete(void*) operator new(unsigned long) ___gxx_personality_v0 collect2: ld returned 1 exit status make: *** [coral] Error 1 Thanks On 4/11/07, Nicola Pero <[EMAIL PROTECTED]> wrote:
Not sure which 'previous email' ;-) Anyway, if it's all C you should try with CC=gcc CPPFLAGS=-c -g -I/usr/local/Coral/include -I/Users/hetawal/coral-3.7.5-public/custom LDFLAGS=-L/usr/local/Coral/lib -lcoral -lpcap -lhashtab -lz if C++ is involved, you could try with CC=g++ CPPFLAGS=-c -g -I/usr/local/Coral/include -I/Users/hetawal/coral-3.7.5-public/custom LDFLAGS=-L/usr/local/Coral/lib -lcoral -lpcap -lhashtab -lz I would hope one of the two would work. Thanks -----Original Message----- From: amit hetawal <[EMAIL PROTECTED]> Sent: Wed, April 11, 2007 6:36 pm To: [EMAIL PROTECTED] Cc: [email protected] Subject: Re: problem linking on MAC OSX Hello, Sorry for the confusion, i serached the net and found a similar question addressed to this mailing list so i just mailed according to that. But i am in desparate in need of help. I fyou can help me out. My source code is in C and i tried using gcc and removed libstdc++ but then it gives the error mentioned in previous email. Can you please advice Thanks On 4/11/07, Nicola Pero <[EMAIL PROTECTED]> wrote: > Are you sure this is the right mailing list for your problem ? ;-) > > This is a mailing list for GNUstep developers. :-) > > Anyway, trying to guess what you're trying to do, > are you compiling/linking a C file ? Then you probably > don't want to use g++ or libstdc++, which are used for C++. > > Thanks > > > > -----Original Message----- > From: amit hetawal <[EMAIL PROTECTED]> > Sent: Wed, April 11, 2007 5:13 pm > To: [email protected] > Subject: problem linking on MAC OSX > > Hello all, > I have a make file which looks like: > CC=/usr/bin/gcc > CPPFLAGS=-c -g -I/usr/local/Coral/include > -I/Users/hetawal/coral-3.7.5-public/custom > LDFLAGS=-L/usr/local/Coral/lib -lcoral -lpcap -lhashtab -lz -lstdc++ > OBJECTS=coral_test.o \ > recycle.o \ > lookupa.o \ > hashtab.o > TARGET=coral > > $(TARGET): $(OBJECTS) > $(CC) -g -o $(TARGET) $(OBJECTS) $(LDFLAGS) > > coral_test.o: coral_test.c Makefile > $(CC) $(CPPFLAGS) coral_test.c > > clean: > rm -rf $(OBJECTS) $(TARGET) > > but its always giving me error as : > /usr/bin/gcc -c -g -I/usr/local/Coral/include > -I/Users/hetawal/coral-3.7.5-public/custom coral_test.c > coral_test.c: In function 'removeall': > coral_test.c:68: warning: comparison between pointer and integer > coral_test.c: In function 'getStatusValue': > coral_test.c:76: warning: pointer targets in passing argument 1 of > 'strlen' differ in signedness > coral_test.c:99: warning: comparison between pointer and integer > coral_test.c: In function 'insert': > coral_test.c:114: warning: pointer targets in passing argument 1 of > 'strlen' differ in signedness > coral_test.c: In function 'process_packet': > coral_test.c:164: warning: pointer targets in assignment differ in signedness > coral_test.c:165: warning: pointer targets in assignment differ in signedness > coral_test.c:167: warning: pointer targets in passing argument 1 of > 'strcpy' differ in signedness > coral_test.c:168: warning: pointer targets in passing argument 1 of > 'strcat' differ in signedness > coral_test.c:169: warning: pointer targets in passing argument 1 of > 'strcat' differ in signedness > coral_test.c:171: warning: pointer targets in passing argument 1 of > 'strcpy' differ in signedness > coral_test.c:172: warning: pointer targets in passing argument 1 of > 'strcat' differ in signedness > coral_test.c:173: warning: pointer targets in passing argument 1 of > 'strcat' differ in signedness > coral_test.c:187: warning: assignment makes pointer from integer without a cast > coral_test.c:188: warning: assignment makes pointer from integer without a cast > coral_test.c: In function 'main': > coral_test.c:341: warning: pointer targets in passing argument 1 of > 'strlen' differ in signedness > /usr/bin/gcc -g -o coral coral_test.o recycle.o lookupa.o hashtab.o > -L/usr/local/Coral/lib -lcoral -lpcap -lhashtab -lz -lstdc++ > /usr/bin/ld: Undefined symbols: > __Unwind_Resume > collect2: ld returned 1 exit status > make: *** [coral] Error 1 > > I have tried changing the compiler to g++ and the lstdc++ flag but no use. > > Can someone help me with this ... > > Thanks > > > _______________________________________________ > Gnustep-dev mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/gnustep-dev > >
_______________________________________________ Gnustep-dev mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnustep-dev
