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

can't compile C++ interface for postgres

From: "Tobias Eriksson" <tobias(dot)eriksson(at)mbox311(dot)swipnet(dot)se>
To: <pgsql-interfaces(at)postgreSQL(dot)org>
Cc: <tobias(dot)eriksson(at)mbox311(dot)swipnet(dot)se>
Subject: can't compile C++ interface for postgres
Date: 1999-01-10 18:00:06
Message-ID: 199901101801.TAA12613@mb06.swip.net (view raw or flat)
Thread:
Lists: pgsql-interfaces
Hi there
 Tried to compile the libpq++ examples, but it didn't work out that well,
The compile-log can be found below. It seems like it's got a hard time
linking the stuff togather...
I would really appriciate if you could help me out, I'm running Redhat 5.1
on my compaq P200MMX.

 regards
 Tobias Eriksson - Sweden


make -C.. libpq++.a
make[1]: Entering directory
`/usr/src/pgsql/postgresql-v6.4/src/interfaces/libpq++'
make[1]: `libpq++.a' is up to date.
make[1]: Leaving directory
`/usr/src/pgsql/postgresql-v6.4/src/interfaces/libpq++'
g++ -I../../../include -I../../../backend   -O2  -Wall -Wmissing-prototypes
-Wno-error -I.. -I../../../backend -I../../../include
-I../../../interfaces/libpq -I/usr/pgsql/include -o testlibpq0
testlibpq0.cc -lcrypt -lnsl -ldl -lm -lbsd -lreadline -lhistory -ltermcap
-lncurses  -export-dynamic -L.. -lpq++ -L../../../interfaces/libpq -lpq 
/tmp/cca076711.o: In function `main':
/tmp/cca076711.o(.text+0xc1): undefined reference to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::nilRep'
/tmp/cca076711.o(.text+0xc9): undefined reference to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::nilRep'
/tmp/cca076711.o(.text+0xce): undefined reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem


plate2b1i03Rep'
/tmp/cca076711.o(.text+0xde): undefined reference to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::nilRep'
/tmp/cca076711.o(.text+0xe3): undefined reference to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::nilRep'
/tmp/cca076711.o(.text+0x121): undefined reference to `istream &
getline<char, string_char_traits<char>, __default_alloc_template<true, 0>
>(istream &, basic_string<char, string_char_traits<char>,
__default_alloc_template<true, 0> > &, char)'
/tmp/cca076711.o(.text+0x149): undefined reference to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::compare(char
const *, unsigned int, unsigned int) const'
/tmp/cca076711.o(.text+0x248): undefined reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp


late2b1i03RepPv'
/tmp/cca076711.o(.text+0x288): undefined reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp


late2b1i03RepPv'
.../libpq++.a(pgconnection.o): In function
`PgConnection::PgConnection(void)':
pgconnection.o(.text+0x34): undefined reference to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::nilRep'
pgconnection.o(.text+0x48): undefined reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem


plate2b1i03Rep'
.../libpq++.a(pgconnection.o): In function
`PgConnection::PgConnection(PgConnection const &)':
pgconnection.o(.text+0xd7): undefined reference to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::nilRep'
pgconnection.o(.text+0xe8): undefined reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem


plate2b1i03Rep'
../libpq++.a(pgconnection.o): In function `PgConnection::PgConnection(char
const *)':
pgconnection.o(.text+0x16c): undefined reference to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::nilRep'
pgconnection.o(.text+0x180): undefined reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem


plate2b1i03Rep'
pgconnection.o(.text+0x1e2): undefined reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp


late2b1i03RepPv'
./libpq++.a(pgconnection.o): In function `PgConnection::PgConnection(PgEnv
const &, char const *)':
pgconnection.o(.text+0x25f): undefined reference to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::nilRep'
pgconnection.o(.text+0x273): undefined reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem


plate2b1i03Rep'
pgconnection.o(.text+0x2ba): undefined reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp


late2b1i03RepPv'
.../libpq++.a(pgconnection.o): In function
`PgConnection::~PgConnection(void)':
pgconnection.o(.text+0x359): undefined reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp


late2b1i03RepPv'
./libpq++.a(pgconnection.o): In function `PgConnection::Connect(char const
*)':
pgconnection.o(.text+0x499): undefined reference to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::nilRep'
pgconnection.o(.text+0x4b0): undefined reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem


plate2b1i03Rep'
pgconnection.o(.text+0x4ef): undefined reference to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0>
>::replace(unsigned int, unsigned int, char const *, unsigned int)'
pgconnection.o(.text+0x535): undefined reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp


late2b1i03RepPv'
pgconnection.o(.text+0x561): undefined reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp


late2b1i03RepPv'
.../libpq++.a(pgconnection.o): In function `PgConnection::Exec(char const
*)':
pgconnection.o(.text+0x61a): undefined reference to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::nilRep'
pgconnection.o(.text+0x626): undefined reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem


plate2b1i03Rep'
pgconnection.o(.text+0x65a): undefined reference to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0>
>::replace(unsigned int, unsigned int, char const *, unsigned int)'
pgconnection.o(.text+0x694): undefined reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp


late2b1i03RepPv'
pgconnection.o(.text+0x6b8): undefined reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp


late2b1i03RepPv'
.../libpq++.a(pgconnection.o): In function
`PgConnection::SetErrorMessage(basic_string<char, string_char_traits<char>,
__default_alloc_template<true, 0> > const &, int)':
pgconnection.o(.text+0x79c): undefined reference to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0>
>::replace(unsigned int, unsigned int, basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> > const &,
unsigned int, unsigned int)'
pgconnection.o(.text+0x7c1): undefined reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp


late2b1i03RepPv'
pgconnection.o(.text+0x7d5): undefined reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem


plate2b1i03Rep'
./libpq++.a(pgconnection.o): In function `PgConnection::IntToString(int)':
pgconnection.o(.text+0x821): undefined reference to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::nilRep'
pgconnection.o(.text+0x832): undefined reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem


plate2b1i03Rep'
pgconnection.o(.text+0x869): undefined reference to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0>
>::replace(unsigned int, unsigned int, char const *, unsigned int)'
.../libpq++.a(pgconnection.o): In function `PgEnv::PgEnv(PgEnv const &)':
pgconnection.o(.PgEnv::gnu.linkonce.t.(PgEnv const &)+0x25): undefined
reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem


plate2b1i03Rep'
pgconnection.o(.PgEnv::gnu.linkonce.t.(PgEnv const &)+0x49): undefined
reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem


plate2b1i03Rep'
pgconnection.o(.PgEnv::gnu.linkonce.t.(PgEnv const &)+0x6d): undefined
reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem


plate2b1i03Rep'
pgconnection.o(.PgEnv::gnu.linkonce.t.(PgEnv const &)+0x91): undefined
reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem


plate2b1i03Rep'
pgconnection.o(.PgEnv::gnu.linkonce.t.(PgEnv const &)+0xb5): undefined
reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem


plate2b1i03Rep'
pgconnection.o(.PgEnv::gnu.linkonce.t.(PgEnv const &)+0xf2): undefined
reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp


late2b1i03RepPv'
pgconnection.o(.PgEnv::gnu.linkonce.t.(PgEnv const &)+0x122): undefined
reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp


late2b1i03RepPv'
pgconnection.o(.PgEnv::gnu.linkonce.t.(PgEnv const &)+0x152): undefined
reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp


late2b1i03RepPv'
pgconnection.o(.PgEnv::gnu.linkonce.t.(PgEnv const &)+0x181): undefined
reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp


late2b1i03RepPv'
.../libpq++.a(pgconnection.o): In function `PgEnv::~PgEnv(void)':
pgconnection.o(.gnu.linkonce.t._._5PgEnv+0x2a): undefined reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp


late2b1i03RepPv'
.../libpq++.a(pgconnection.o)(.gnu.linkonce.t._._5PgEnv+0x47): more
undefined references to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp


late2b1i03RepPv' follow
.../libpq++.a(pgenv.o): In function `PgEnv::PgEnv(void)':
pgenv.o(.text+0x17): undefined reference to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::nilRep'
pgenv.o(.text+0x28): undefined reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem


plate2b1i03Rep'
pgenv.o(.text+0x41): undefined reference to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::nilRep'
pgenv.o(.text+0x4f): undefined reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem


plate2b1i03Rep'
pgenv.o(.text+0x65): undefined reference to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::nilRep'
pgenv.o(.text+0x73): undefined reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem


plate2b1i03Rep'
pgenv.o(.text+0x89): undefined reference to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::nilRep'
pgenv.o(.text+0x97): undefined reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem


plate2b1i03Rep'
pgenv.o(.text+0xad): undefined reference to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::nilRep'
pgenv.o(.text+0xbb): undefined reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem


plate2b1i03Rep'
pgenv.o(.text+0x166): undefined reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp


late2b1i03RepPv'
pgenv.o(.text+0x18a): undefined reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp


late2b1i03RepPv'
pgenv.o(.text+0x1ae): undefined reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp


late2b1i03RepPv'
pgenv.o(.text+0x1d2): undefined reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp


late2b1i03RepPv'
pgenv.o(.text+0x1f6): undefined reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp


late2b1i03RepPv'
.../libpq++.a(pgenv.o)(.text+0x22e): more undefined references to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp


late2b1i03RepPv' follow
.../libpq++.a(pgenv.o): In function `PgEnv::PgEnv(basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> > const &,
basic_string<char, string_char_traits<char>, __default_alloc_template<true,
0> > const &, basic_string<char, string_char_traits<char>,
__default_alloc_template<true, 0> > const &, basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> > const &,
basic_string<char, string_char_traits<char>, __default_alloc_template<true,
0> > const &)':
pgenv.o(.text+0x41c): undefined reference to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::nilRep'
pgenv.o(.text+0x42d): undefined reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem


plate2b1i03Rep'
pgenv.o(.text+0x445): undefined reference to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::nilRep'
pgenv.o(.text+0x453): undefined reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem


plate2b1i03Rep'
pgenv.o(.text+0x469): undefined reference to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::nilRep'
pgenv.o(.text+0x477): undefined reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem


plate2b1i03Rep'
pgenv.o(.text+0x48d): undefined reference to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::nilRep'
pgenv.o(.text+0x49b): undefined reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem


plate2b1i03Rep'
pgenv.o(.text+0x4b1): undefined reference to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::nilRep'
pgenv.o(.text+0x4bf): undefined reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem


plate2b1i03Rep'
pgenv.o(.text+0x51a): undefined reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp


late2b1i03RepPv'
pgenv.o(.text+0x54a): undefined reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp


late2b1i03RepPv'
pgenv.o(.text+0x57a): undefined reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp


late2b1i03RepPv'
pgenv.o(.text+0x5aa): undefined reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp


late2b1i03RepPv'
pgenv.o(.text+0x5d9): undefined reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp


late2b1i03RepPv'
.../libpq++.a(pgenv.o)(.text+0x635): more undefined references to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp


late2b1i03RepPv' follow
.../libpq++.a(pgenv.o): In function `PgEnv::SetValues(basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> > const &,
basic_string<char, string_char_traits<char>, __default_alloc_template<true,
0> > const &, basic_string<char, string_char_traits<char>,
__default_alloc_template<true, 0> > const &, basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> > const &,
basic_string<char, string_char_traits<char>, __default_alloc_template<true,
0> > const &)':
pgenv.o(.text+0x649): undefined reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem


plate2b1i03Rep'
pgenv.o(.text+0x677): undefined reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp


late2b1i03RepPv'
pgenv.o(.text+0x68e): undefined reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem


plate2b1i03Rep'
pgenv.o(.text+0x6bb): undefined reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp


late2b1i03RepPv'
pgenv.o(.text+0x6d2): undefined reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem


plate2b1i03Rep'
pgenv.o(.text+0x6ff): undefined reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp


late2b1i03RepPv'
pgenv.o(.text+0x716): undefined reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem


plate2b1i03Rep'
pgenv.o(.text+0x743): undefined reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp


late2b1i03RepPv'
pgenv.o(.text+0x75a): undefined reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem


plate2b1i03Rep'
.../libpq++.a(pgenv.o): In function `PgEnv::getenv(char const *)':
pgenv.o(.text+0x7a4): undefined reference to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >::nilRep'
pgenv.o(.text+0x7b0): undefined reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem


plate2b1i03Rep'
pgenv.o(.text+0x7e2): undefined reference to `basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0>
>::replace(unsigned int, unsigned int, char const *, unsigned int)'
collect2: ld returned 1 exit status
make: *** [testlibpq0] Error 1




pgsql-interfaces by date

Next:From: Aleksey DemakovDate: 1999-01-11 05:28:56
Subject: Re: [INTERFACES] yet another postgresql interface
Previous:From: Albert FriendDate: 1999-01-10 17:11:28
Subject:

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