Received: from typhoon.mail.pipex.net (typhoon.mail.pipex.net [158.43.128.27]) by hub.org (8.9.3/8.9.3) with SMTP id GAA29970 for ; Mon, 22 Nov 1999 06:58:07 -0500 (EST) (envelope-from paul.ganney@dial.pipex.com) Received: (qmail 3412 invoked from network); 22 Nov 1999 11:45:48 -0000 Received: from useraj34.uk.uudial.com (HELO ) (62.188.133.163) by smtp.dial.pipex.com with SMTP; 22 Nov 1999 11:45:48 -0000 Message-ID: <38392B62.6279@dial.pipex.com> Date: Mon, 22 Nov 1999 11:39:14 +0000 From: "Paul S. Ganney" X-Mailer: Mozilla 2.02 (Win95; I; 16bit) MIME-Version: 1.0 To: pgsql-interfaces@postgresql.org Subject: Getting started with libpq++ Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I'm an experienceed C++ programmer (but not that experienceed in the Linux environment) and I'm trying to use libpq++ under Redhat Linux 5.0. As a previous archived post mentioned (but I couldn't follow the thread to a reply), man mentions sample files but they're not there. I've downloaded postgresql-6.5.3.tar.gz, gunzip-ed it, and can't get tar to list the files (using tar -t or tar --list) so I can then extract only the samples. When I try to compile a simple program: #include #include void main() { PgDatabase data("cpd"); } I get lots of messages along the lines of /tmp/cca121441.o: In function `PgDatabase::~PgDatabase(void)': /tmp/cca121441.o(.gnu.linkonce.t._._10PgDatabase+0x15): undefined reference to ` PgConnection::~PgConnection(void)' I've tried g++ with -lpq, but nothing changes. I've even tried explicitly #including pgconnection.h, but to no avail. So, I guess this isn't a particuarly tricky one to those with libpq++ running fine, but it's a massive holdup to me. Any help gratefully received. Thanks Paul. -- ------------------------------------------- Expressed opinions are usually my own. Especially if they're any good (of course). -------------------------------------------