Re: - Mailing list pgsql-hackers

From Patrick Welche
Subject Re:
Date
Msg-id 20010726202921.F11422@quartz.newn.cam.ac.uk
Whole thread Raw
In response to ...  (Zudi Iswanto <zudi@dnet.net.id>)
List pgsql-hackers
On Thu, Jul 26, 2001 at 04:55:14PM +0700, Zudi Iswanto wrote:
> I am developing application with c++
... 
> /tmp/ccy63XDd.o(.text+0x70): undefined reference to `PQsetdbLogin'
> /tmp/ccy63XDd.o(.text+0x91): undefined reference to `PQstatus'
> /tmp/ccy63XDd.o(.text+0xc4): undefined reference to `PQerrorMessage'

Did you link libpq as well as libpq++ ? ie something like
-L/usr/local/lib/pgsql -Wl,-R/usr/local/lib/pgsql -lpq++ -lpq

Cheers,

Patrick


pgsql-hackers by date:

Previous
From: "John Gray"
Date:
Subject: Re: Re: Storing XML in PostgreSQL
Next
From: Khoa Do
Date:
Subject: RE: LIBPQ on Windows and large Queries