Skip to Content.
Sympa Menu

freetds - Re: [freetds] ld: fatal: Symbol referencing errors....g++ -g -L.

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Martin Spott <Martin.Spott AT uni-duisburg.de>
  • To: freetds AT lists.ibiblio.org
  • Subject: Re: [freetds] ld: fatal: Symbol referencing errors....g++ -g -L.
  • Date: Thu, 2 Dec 2004 14:08:33 +0000 (UTC)

"Chaitanya B" wrote:
> i had an error as given below also when using the libctiwf.a with my
> program...
> bash# gcc orgclient.cc -o orgclient
> undefined first referenced
> symbol in file
> cti_open_connection(char*,Char*,int) /var/tmp//ccPELfc.o
> cti_open_connection(int) /var/tmp//ccPELfc.o
> _gxx_personality_v0 /var/tmp//ccPELfc.o

There is almost no difference to the same layout on Linux. You simply
need to link the libraries whose functions you call.
'gxx_perrsonality' is supposed to be implemented in the standard C++
template lib, add '-lstdc++' for it. I don't have any idea where
'cti_open_connection' stems from, but I think you'll know, because you
decided to use this function :-)

Martin.
--
Unix _IS_ user friendly - it's just selective about who its friends are !
--------------------------------------------------------------------------




Archive powered by MHonArc 2.6.24.

Top of Page