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 18:10:05 -0400

What do you mean by that, the source code a for them are present in
the same folder. Its like the lookup, recycle is the hash
implementation in C and the file is coral_test.c is another custome
software for networking wchih in case uses the code of hashes for the
working.
Hope i make sense...

So do i need to chnage anything in my makefile then ?

Thanks


On 4/11/07, Yen-Ju Chen <address@hidden> wrote:
On 4/11/07, amit hetawal <address@hidden> wrote:
[snip]
> > >
> > > 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

I may be totally wrong here.
But where are the source codes of your recycle.o, lookupa.o and hashtab.o ?
I only see the coral_test.c.

Yen-Ju

> > >
> > > 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
> > >
> > >
> >
> >
>
>
> _______________________________________________
> 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]