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

From Jim Morcombe
Subject Re: Can't link to libpq
Date
Msg-id 005101c231fc$e5019140$526567cb@BYRONICS
Whole thread Raw
In response to Can't link to libpq  ("Jim Morcombe" <jim@byronics.com.au>)
List pgsql-general
Tom

The problem is that I am not sucessfully linking to libpq.so.  I have run
out of ideas and neeed help.

The "fprint" was a typo and is now fixed.

I didn't "cut & paste" my error messages.  I retyped my errror message and
made a typo in "pqstatus", but the actual error message has "PQstatus".

None of the functions in libpq.so are linking.  I removed all of the code in
example 1-1 except the parts to open and close the connection, so I didn't
get a link error on PQexec because I had chopped it out to come up with a
simpler example.  If I type in the complete example, I get more link errors.

Jim



----- Original Message -----
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jim Morcombe <jim@byronics.com.au>
Cc: pgsql General <pgsql-general@postgresql.org>
Sent: Friday, July 19, 2002 9:16 PM
Subject: Re: [GENERAL] Can't link to libpq


> "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: Josh Jore
Date:
Subject: Re: Access Two Databases
Next
From: Joe Conway
Date:
Subject: Re: Access Two Databases