pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Friess <jjfriess@vicidesign.com>
To: 'pgsql-interfaces@postgresql.org' <pgsql-interfaces@postgresql.org>
To: 'pgsql-novice@postgresql.org' <pgsql-novice@postgresql.org>
Subject: just noticed something about libpq++ linking...
Date: Wed, 7 Oct 1998 04:47:19 -0500
Message-ID: <01BDF1AD.90E847E0.jjfriess@vicidesign.com> (raw)

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




Message-ID: <01BDF1AD.90E847E0.jjfriess@vicidesign.com>
Permalink:  ../01BDF1AD.90E847E0.jjfriess@vicidesign.com/
Also on:    postgresql.org/message-id/01BDF1AD.90E847E0.jjfriess@vicidesign.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: jjfriess@vicidesign.com, pgsql-novice@postgresql.org
  Subject: Re: just noticed something about libpq++ linking...
  In-Reply-To: <01BDF1AD.90E847E0.jjfriess@vicidesign.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox