Re: Can't link to libpq - Mailing list pgsql-general

From Tom Lane
Subject Re: Can't link to libpq
Date
Msg-id 12138.1027084574@sss.pgh.pa.us
Whole thread Raw
In response to Can't link to libpq  ("Jim Morcombe" <jim@byronics.com.au>)
List pgsql-general
"Jim Morcombe" <jim@byronics.com.au> writes:
> However, I get the following errors:

> Undefined symbol
> PQfinish
> PQsetdbLogin
> pqstatus
> fprint
> PQerrorMessage

At least two of those are obviously your own typos (fprint presumably
should be fprintf, and pqstatus should be PQstatus).  The others look
like they should have worked, but I'm kinda suspicious that there's
another typo lurking somewhere.  Since you did not get link errors for
PQexec and several other library routines that are used in example 1-1,
it seems clear that you are successfully linking to libpq.so.  Why are
these three names failing?  I dunno, but I suspect typos ...

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: OIDs (Or: another RTFM question?)
Next
From: Bruno Wolff III
Date:
Subject: Re: select a ranking