pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guido Goldstein <guido@gold.siebend.net>
To: pgsql-interfaces@postgresql.org
Cc: Chris Holman <chrish@owl.co.uk>
Subject: Re: [INTERFACES] link problems when inheriting from libpq++
Date: 17 Feb 2000 18:31:55 +0100
Message-ID: <ltu2j7hh10.fsf@nathan.gold.siebend.net> (raw)
References: <000801bf7941$8f9a1c20$2d96a8c0@dylan.owl.co.uk>


Hi!

On Thu, 17 Feb 2000 12:21:47 -0000
  "Chris Holman" <chrish@owl.co.uk> wrote:
[...]
> void main(void){
>    /***********  why does next line cause problems during
> link?*************/
>    newPgCursor causesLinkErrors;
>    PgCursor cdh("dbname=testing", "cdh1");
[...]
> CCC=g++
> 
> GCCOPTIONS= -frtti -D_CPPRTTI 
              ^^^^^^^
Viewpoint 1

[...]
> ******************** LINKER OUTPUT STARTS **************************
> [chrish@pigpen testString]$ make
> g++ -frtti -D_CPPRTTI -D_UNIT_TEST_OBJECT_   -I/usr/include/pgsql/libpq -I/usr/i
> nclude/pgsql/libpq++ -I/usr/include/pgsql -c test.cpp -o test.o
> g++ -o test.exe test.o -L/usr/lib -lpq++ -lpq
> test.o: In function `newPgCursor type_info function':
> test.o(.gnu.linkonce.t.__tf11newPgCursor+0xd): undefined reference to `PgCursor
> type_info function'

Read the error message!

You're compiling your program with RTTI (runtime-type-information)
enabled (see Viepoint 1). Before you can use other C++-Libs you have
to make sure that these libs also include the RTTI code.

HIH
  Guido
-- 
The biggest improvement in performance is the non-working-to-working
transition.                                           -- John Ousterhout



view thread (3+ messages)  latest in thread

Message-ID: <ltu2j7hh10.fsf@nathan.gold.siebend.net>
Permalink:  ../ltu2j7hh10.fsf@nathan.gold.siebend.net/
Also on:    postgresql.org/message-id/ltu2j7hh10.fsf@nathan.gold.siebend.net

 · 

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: guido@gold.siebend.net, chrish@owl.co.uk
  Subject: Re: [INTERFACES] link problems when inheriting from libpq++
  In-Reply-To: <ltu2j7hh10.fsf@nathan.gold.siebend.net>

* 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