:
:
От:
"shey sewani" <pakix2000@hotmail.com>
Дата:
Cand find postgres Libpq libraries
Date: Mon, 21 Oct 2002 09:49:25 -0500
Mime-Version: 1.0
Content-Type: text/plain; format=flowed
Hello,
I recently Intalled RedHat 8.0 on my server. I also upgraded from Postgres
7.1 to Postgres 7.2.3 using RPMS. I installed all the RPMS for 7.2.3 on
this machine. Unfortunatley I've had some problems compiling programs that
use libpq++ on this machine. When I compile such programs I get the
following error messages.
"Querydtntrack.o(.text+0x2d): undefined reference to
`PgConnection::ConnectionBad() const'
Querydtntrack.o(.text+0x4b): undefined reference to
`PgConnection::ErrorMessage() const'
Querydtntrack.o: In function `PgDatabase::PgDatabase[in-charge](char
const*)':
Querydtntrack.o(.gnu.linkonce.t._ZN10PgDatabaseC1EPKc+0x10): undefined
reference to `PgConnection::PgConnection[not-in-charge](char
const*)'Querydtntrack.o: In function `PgDatabase::~PgDatabase
[in-charge]()':
Querydtntrack.o(.gnu.linkonce.t._ZN10PgDatabaseD1Ev+0x16): undefined
reference to `PgConnection::~PgConnection [not-in-charge]()'
Querydtntrack.o: In function `PgDatabase::~PgDatabase [in-charge
deleting]()':
Querydtntrack.o(.gnu.linkonce.t._ZN10PgDatabaseD0Ev+0x16): undefined
reference to `PgConnection::~PgConnection [not-in-charge]()'
Querydtntrack.o(.gnu.linkonce.d._ZTI10PgDatabase+0x8): undefined reference
to `typeinfo for PgConnection'
collect2: ld returned 1 exit status
make: *** [Querydtntrack] Error 1"
I'm using the same make file as I did on my Redhat 7.1 machine with postgres
7.1
"all: Querydtntrack
Querydtntrack: Querydtntrack.o
gcc -o Querydtntrack Querydtntrack.o -lstdc++ -lpq++ -lpq
-march=i686;
clean:
rm -f *.o Querydtntrack core"
Any suggestions on what the problem may be.
Thanks,
Sheheryar Sewani
Houston, TX
_________________________________________________________________
Get faster connections�-- switch to�MSN Internet Access!
http://resourcecenter.msn.com/access/plans/default.asp
Re: :
От:
Tommi Maekitalo <t.maekitalo@epgmbh.de>
Дата:
Am Montag, 21. Oktober 2002 16:49 schrieb shey sewani: > Cand find postgres Libpq libraries > Date: Mon, 21 Oct 2002 09:49:25 -0500 > Mime-Version: 1.0 > Content-Type: text/plain; format=flowed > > Hello, > > I recently Intalled RedHat 8.0 on my server. I also upgraded from Postgres > 7.1 to Postgres 7.2.3 using RPMS. I installed all the RPMS for 7.2.3 on > this machine. Unfortunatley I've had some problems compiling programs that > use libpq++ on this machine. When I compile such programs I get the > following error messages. > > "Querydtntrack.o(.text+0x2d): undefined reference to > `PgConnection::ConnectionBad() const' > Querydtntrack.o(.text+0x4b): undefined reference to > `PgConnection::ErrorMessage() const' > Querydtntrack.o: In function `PgDatabase::PgDatabase[in-charge](char > const*)': > Querydtntrack.o(.gnu.linkonce.t._ZN10PgDatabaseC1EPKc+0x10): undefined > reference to `PgConnection::PgConnection[not-in-charge](char > const*)'Querydtntrack.o: In function `PgDatabase::~PgDatabase > [in-charge]()': > Querydtntrack.o(.gnu.linkonce.t._ZN10PgDatabaseD1Ev+0x16): undefined > reference to `PgConnection::~PgConnection [not-in-charge]()' > Querydtntrack.o: In function `PgDatabase::~PgDatabase [in-charge > deleting]()': > Querydtntrack.o(.gnu.linkonce.t._ZN10PgDatabaseD0Ev+0x16): undefined > reference to `PgConnection::~PgConnection [not-in-charge]()' > Querydtntrack.o(.gnu.linkonce.d._ZTI10PgDatabase+0x8): undefined reference > to `typeinfo for PgConnection' > collect2: ld returned 1 exit status > make: *** [Querydtntrack] Error 1" > > I'm using the same make file as I did on my Redhat 7.1 machine with > postgres 7.1 > > "all: Querydtntrack > > Querydtntrack: Querydtntrack.o > gcc -o Querydtntrack Querydtntrack.o -lstdc++ -lpq++ -lpq > -march=i686; > clean: > rm -f *.o Querydtntrack core" > > Any suggestions on what the problem may be. > > Thanks, > Sheheryar Sewani > Houston, TX > > > > _________________________________________________________________ > Get faster connections -- switch to MSN Internet Access! > http://resourcecenter.msn.com/access/plans/default.asp > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org Hi, you should use g++ when compiling/linking c++. Tommi -- Dr. Eckhardt + Partner GmbH http://www.epgmbh.de