This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Linking problems
- To: <gcc-help at gcc dot gnu dot org>
- Subject: Linking problems
- From: Eduardo José Hernández Cisneros <is100403 at mail dot udlap dot mx>
- Date: Wed, 14 Mar 2001 03:36:26 -0600
Hello, I compile my application with this sentence:
gcc \
-I/./include \
-I/./xyz/include \
-I. \
-lm -lsocket -lnsl \
-c -o client.o client.cc \
I have a static library developed with Sun´s Worshop compiler:
/.../lib/abc.a
And When I try to link my client.o file with /.../lib/abc.a I got this:
/usr/ccs/bin/ld \
-L /./lib \
-L /./xyz//lib \
-L /opt/GCC281/lib \
-l myGNU\
-l myGNUclass \
-l stdc++ \
-l iberty \
-o client client.o
Undefined first
referenced
symbol in file
Value__15myGNUSimpleParameter client.o
__14myGNUClientFunctionPC14myGNUConnPCci client.o
__tf14myGNUClientFunction client.o
__as__10myGNUStringPCc client.o
_._10myGNUString client.o
....
....
What can I do for solve it ???
Thank you for your time.
Best regards
Eduardo Hdz.
Universidad de la Américas - Puebla
http://www.udlap.mx/
http://mailweb.pue.udlap.mx/~is100403/