From: | Patrick Welche <prlw1(at)newn(dot)cam(dot)ac(dot)uk> |
---|---|
To: | Tim Boring <tboring(at)insight(dot)rr(dot)com> |
Cc: | pgsql-interfaces(at)postgresql(dot)org |
Subject: | Re: Problem with libpq++ |
Date: | 2001-12-13 18:20:03 |
Message-ID: | 20011213182003.F12426@quartz.newn.cam.ac.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
On Sun, Dec 09, 2001 at 10:56:31PM -0500, Tim Boring wrote:
> I'm trying to compile the example program on p194 of PostgreSQL:
> Introduction and concepts, but the compiler (g++ v2.95.3) is complaining
> about an undefined reference to PgConnection::ConnectionBad() and other
> calls to class member functions. I've included the command I'm using to
> compile the source, the error message, and the source below. Any help in
> pointing out where the mistake is is greatly appreciated.
>
> Tim
>
>
> Here's the command line I'm using for compilation:
>
> g++ -I/usr/local/pgsql/include postgre.cpp -o postgre
> -L/usr/local/pgsql/lib -lpq++
It doesn't tie in with your error message, but I'm pretty sure you need
to link -lpq too.
Cheers,
Patrick
From | Date | Subject | |
---|---|---|---|
Next Message | jim davis | 2001-12-13 22:01:44 | pgAccess v. Access2000 |
Previous Message | jacques.talbot | 2001-12-12 19:19:00 | pgaccess: error main in libpgtcl.so is not defined |