pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: blackw@sfu.ca
To: pgsql-interfaces@postgresql.org
Subject: Linking problems
Date: Thu, 20 Jan 2000 12:14:29 PST
Message-ID: <200001202014.MAA09014@rm-rstar.sfu.ca> (raw)

Hi,

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/libpq++.so: undefined reference to `clone__Q2t12basic_string3ZcZt18stri
ng_char_traits1ZcZt24__default_alloc_template2b1i03Rep'
/usr/lib/libpq++.so: undefined reference to `__dl__Q2t12basic_string3ZcZt18strin
g_char_traits1ZcZt24__default_alloc_template2b1i03RepPv'
/usr/lib/libpq++.so: 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
libstdc++-2.9.0-24
postgresql-6.5.3-1.i386.rpm

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.

Cheers,
Richard





view thread (5+ messages)  latest in thread

Message-ID: <200001202014.MAA09014@rm-rstar.sfu.ca>
Permalink:  ../200001202014.MAA09014@rm-rstar.sfu.ca/
Also on:    postgresql.org/message-id/200001202014.MAA09014@rm-rstar.sfu.ca

 · 

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: blackw@sfu.ca
  Subject: Re: Linking problems
  In-Reply-To: <200001202014.MAA09014@rm-rstar.sfu.ca>

* 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