"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