Received: from mail1.doit.wisc.edu (mail1.doit.wisc.edu [144.92.9.40]) by hub.org (8.8.8/8.8.8) with ESMTP id RAA07532; Wed, 7 Oct 1998 17:46:33 -0400 (EDT) (envelope-from jjfriess@vicidesign.com) Received: from [146.151.62.76] by mail1.doit.wisc.edu id QAA87924 (8.8.6/50); Wed, 7 Oct 1998 16:46:32 -0500 Received: by localhost with Microsoft MAPI; Wed, 7 Oct 1998 04:47:19 -0500 Message-ID: <01BDF1AD.90E847E0.jjfriess@vicidesign.com> From: Josh Friess Reply-To: "jjfriess@vicidesign.com" To: "'pgsql-interfaces@postgresql.org'" , "'pgsql-novice@postgresql.org'" Subject: just noticed something about libpq++ linking... Date: Wed, 7 Oct 1998 04:47:19 -0500 Organization: Vici Design, LLC. X-Mailer: Microsoft Internet E-mail/MAPI - 8.0.0.4211 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit When I use the -lpq and -lpq++ flags, I still get errors, but I get less of them. Errors with the extra flags: /tmp/cca015641.o: In function `main': /tmp/cca015641.o(.text+0xf): undefined reference to `PgEnv::PgEnv(void)' /tmp/cca015641.o(.text+0x3b): undefined reference to `PgConnection::Exec(char c$ /tmp/cca015641.o: In function `PgDatabase::~PgDatabase(void)': /tmp/cca015641.o(.gnu.linkonce.t._._10PgDatabase+0x15): undefined reference to $ /tmp/cca015641.o: In function `PgDatabase::PgDatabase(PgEnv const &, char const$ /tmp/cca015641.o(.PgDatabase::gnu.linkonce.t.(PgEnv const &, char const *)+0x13$ /tmp/cca015641.o(.PgDatabase::gnu.linkonce.t.(PgEnv const &, char const *)+0x34$ /tmp/cca015641.o: In function `PgDatabase type_info function': /tmp/cca015641.o(.gnu.linkonce.t.__tf10PgDatabase+0xd): undefined reference to $ /tmp/cca015641.o(.gnu.linkonce.t.__tf10PgDatabase+0x14): undefined reference to$ collect2: ld returned 1 exit status Errors without the extra flags: /tmp/cca015731.o: In function `main': /tmp/cca015731.o(.text+0xf): undefined reference to `PgEnv::PgEnv(void)' /tmp/cca015731.o(.text+0x3b): undefined reference to `PgConnection::Exec(char c$ /tmp/cca015731.o: In function `PgDatabase::GetValue(int, int)': /tmp/cca015731.o(.PgDatabase::gnu.linkonce.t.GetValue(int, int)+0x16): undefine$ /tmp/cca015731.o: In function `PgDatabase::Tuples(void)': /tmp/cca015731.o(.PgDatabase::gnu.linkonce.t.Tuples(void)+0xc): undefined refer$ /tmp/cca015731.o: In function `PgDatabase::~PgDatabase(void)': /tmp/cca015731.o(.gnu.linkonce.t._._10PgDatabase+0x15): undefined reference to $ /tmp/cca015731.o: In function `PgDatabase::PgDatabase(PgEnv const &, char const$ /tmp/cca015731.o(.PgDatabase::gnu.linkonce.t.(PgEnv const &, char const *)+0x13$ /tmp/cca015731.o(.PgDatabase::gnu.linkonce.t.(PgEnv const &, char const *)+0x34$ /tmp/cca015731.o: In function `PgDatabase type_info function': /tmp/cca015731.o(.gnu.linkonce.t.__tf10PgDatabase+0xd): undefined reference to $ /tmp/cca015731.o(.gnu.linkonce.t.__tf10PgDatabase+0x14): undefined reference to$ collect2: ld returned 1 exit status There are a couple of extra error lines. It seems that the main problem is with the functions beginning with .gnu.linkonce or something like that. How do you solve this? Josh ------------------------------------------------ Josh Friess Vici Design, LLC. jjfriess@vicidesign.com http://www.vicidesign.com