Re: Can't link to libpq

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Jim Morcombe" <jim(at)byronics(dot)com(dot)au>
Cc: "pgsql General" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Can't link to libpq
Date: 2002-07-19 13:16:14
Message-ID: 12138.1027084574@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Jim Morcombe" <jim(at)byronics(dot)com(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Lockhart 2002-07-19 13:29:13 Re: problem set TIMEZONE
Previous Message Ericson Smith 2002-07-19 13:08:33 Re: Too many clients to Postgresql server