Hi!

On Fri, 2 Apr 1999, Bob VonMoss wrote:
> I'm starting to use libpq.a in a test C/C++ program, but am getting the
> following the linker errors:
> 
> bash$ gmake
> gcc -o test test.o libpq.a
> Undefined                       first referenced
>  symbol                             in file
> socket                              libpq.a(fe-connect.o)
> recv                                libpq.a(fe-misc.o)
> getprotobyname                      libpq.a(fe-connect.o)
> gethostbyname                       libpq.a(fe-connect.o)
> send                                libpq.a(fe-connect.o)
> setsockopt                          libpq.a(fe-connect.o)
> getsockname                         libpq.a(fe-connect.o)
> connect                             libpq.a(fe-connect.o)
> ld: fatal: Symbol referencing errors. No output written to test
> gmake: *** [test] Error 1
> bash$
> 
> What library am I missing?
> It looks like a system library with the tcpip functions.
> I ran 'configure' and recompiled libpq.a

   You haven't mention your OS, is it Solaris? -lsocket -lnsl
   (these are socket and name services)

> --
> Bob VonMoss
> mailto:[EMAIL PROTECTED]
> from Chicago, IL

Oleg.
---- 
    Oleg Broytmann  National Research Surgery Centre  http://sun.med.ru/~phd/
           Programmers don't die, they just GOSUB without RETURN.

Reply via email to