[freetds] ld: fatal: Symbol referencing errors....g++ -g -L.
orgClient.o -lctiwf
Chaitanya B
chaitanyap at knowsys.net
Thu Dec 2 08:04:46 EST 2004
Hi All,
Can any one please help me, i am facing a problem in linking an external Library libctiwf.a with my c++ program which has the respective ctiapiwf.h file included.
The following is the error i am getting when executing it in Solaris 5.8 and g++ compiler.
I have tried with most of the comman linking commands....
bash-2.03# g++ -c orgClient.cc
bash-2.03# ls
ctiapiwf.h header libctiwf.a orgClient.c orgClient.cc orgClient.o
bash-2.03# g++ -g -L. orgClient.o -lctiwf
Undefined first referenced
symbol in file
socket ./libctiwf.a(api.o)
recv ./libctiwf.a(api.o)
gethostbyname ./libctiwf.a(api.o)
send ./libctiwf.a(api.o)
setsockopt ./libctiwf.a(api.o)
getservbyname ./libctiwf.a(api.o)
connect ./libctiwf.a(api.o)
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
It is very urgent , please help.....
Thankz and regards,
Chaitanya Prabhu. B
More information about the FreeTDS
mailing list