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

Linking problems

From: blackw(at)sfu(dot)ca
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Linking problems
Date: 2000-01-20 12:14:29
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces

I seem to have a problem with my libpq++ library.  I wrote a QnD test program that simply connects and disconnects from Postgres.  When I compile it, I get the following error messages:

gcc  -o testsql testsql.o -lm -lstdc++ -lpq++
/usr/lib/ undefined reference to `clone__Q2t12basic_string3ZcZt18stri
/usr/lib/ undefined reference to `__dl__Q2t12basic_string3ZcZt18strin
/usr/lib/ undefined reference to `__eh_pc'
collect2: ld returned 1 exit status
make: *** [testsql] Error 1

Here's the environment:
RH 6.1 (i386) (upgraded from 5.2)
egcs 1.1.2-24

I am guessing that there may be some library mix-up going on here, or I'm omitting a required library.

Alternatively, should I be using the postgresql-6.5.2 release that comes with RH6.1?  (I had installed 6.5.3-1 when I was running RH5.2.)

Any insight would be appreciated.  Thank-you in advance.


pgsql-interfaces by date

Next:From: Patrick WelcheDate: 2000-01-20 15:43:58
Subject: ODBC Access97 pq_recvbuf
Previous:From: Dave PageDate: 2000-01-19 16:26:47
Subject: RE: [INTERFACES] Setup of PGAdmin

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