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 13:33:55 +0000 (UTC)

"Chaitanya B" wrote:

> 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)

On Solaris you usually have to add -lsocket and/or -lnsl to programs
that do communication over network. I'd use both: libsocket for
'socket' and libnsl for the rest ;-)

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




Archive powered by MHonArc 2.6.24.

Top of Page