Re: Can't link to libpq

From: "Jim Morcombe" <jim(at)byronics(dot)com(dot)au>
To: "pgsql General" <pgsql-general(at)postgresql(dot)org>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: Can't link to libpq
Date: 2002-07-23 03:56:09
Message-ID: 005101c231fc$e5019140$526567cb@BYRONICS
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(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>
Sent: Friday, July 19, 2002 9:16 PM
Subject: Re: [GENERAL] Can't link to libpq

> "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

Browse pgsql-general by date

  From Date Subject
Next Message Joe Conway 2002-07-23 03:59:24 Re: Access Two Databases
Previous Message Josh Jore 2002-07-23 03:31:14 Re: Access Two Databases