just noticed something about libpq++ linking...

Поиск
Список
Период
Сортировка
Искать

just noticed something about libpq++ linking...

От:
Josh Friess <jjfriess@vicidesign.com>
Дата:
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

FAQ