[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
problem linking on MAC OSX
From: |
amit hetawal |
Subject: |
problem linking on MAC OSX |
Date: |
Wed, 11 Apr 2007 11:13:03 -0400 |
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
- problem linking on MAC OSX,
amit hetawal <=
Re: problem linking on MAC OSX, Nicola Pero, 2007/04/12