Skip site navigation (1) Skip section navigation (2)

Re: Problem with libpq++

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: (view raw, whole thread or download thread mbox)
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.



In response to

pgsql-interfaces by date

Next:From: jim davisDate: 2001-12-13 22:01:44
Subject: pgAccess v. Access2000
Previous:From: jacques.talbotDate: 2001-12-12 19:19:00
Subject: pgaccess: error main in is not defined

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group