gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem linking on MAC OSX


From: amit hetawal
Subject: Re: problem linking on MAC OSX
Date: Wed, 11 Apr 2007 12:36:34 -0400

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 <address@hidden> 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 <address@hidden>
Sent: Wed, April 11, 2007 5:13 pm
To: address@hidden
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
address@hidden
http://lists.gnu.org/mailman/listinfo/gnustep-dev






reply via email to

[Prev in Thread] Current Thread [Next in Thread]