Re:

From: Patrick Welche <prlw1(at)newn(dot)cam(dot)ac(dot)uk>
To: Zudi Iswanto <zudi(at)dnet(dot)net(dot)id>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re:
Date: 2001-07-26 19:29:21
Message-ID: 20010726202921.F11422@quartz.newn.cam.ac.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

  • at 2001-07-26 09:55:14 from Zudi Iswanto

Browse pgsql-hackers by date

  From Date Subject
Next Message Khoa Do 2001-07-26 19:36:27 RE: LIBPQ on Windows and large Queries
Previous Message John Gray 2001-07-26 17:40:57 Re: Re: Storing XML in PostgreSQL