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

just noticed something about libpq++ linking...

From: Josh Friess <jjfriess(at)vicidesign(dot)com>
To: "'pgsql-interfaces(at)postgresql(dot)org'" <pgsql-interfaces(at)postgresql(dot)org>, "'pgsql-novice(at)postgresql(dot)org'" <pgsql-novice(at)postgresql(dot)org>
Subject: just noticed something about libpq++ linking...
Date: 1998-10-07 09:47:19
Message-ID: 01BDF1AD.90E847E0.jjfriess@vicidesign.com (view raw or flat)
Thread:
Lists: pgsql-interfaces
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(at)vicidesign(dot)com
http://www.vicidesign.com


pgsql-interfaces by date

Next:From: Joris EschDate: 1998-10-07 12:46:00
Subject: RE: libpq++ and gcc
Previous:From: bugmanDate: 1998-10-07 09:29:45
Subject: extra information of the problem i discovered.

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