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

Re: [INTERFACES] link problems when inheriting from libpq++

From: Guido Goldstein <guido(at)gold(dot)siebend(dot)net>
To: <pgsql-interfaces(at)postgresql(dot)org>
Cc: "Chris Holman" <chrish(at)owl(dot)co(dot)uk>
Subject: Re: [INTERFACES] link problems when inheriting from libpq++
Date: 2000-02-17 17:31:55
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces

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

> ******************** LINKER OUTPUT STARTS **************************
> [chrish(at)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.

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

In response to


pgsql-interfaces by date

Next:From: Constantin TeodorescuDate: 2000-02-17 18:04:48
Subject: Re: [INTERFACES] A question on triggers
Previous:From: Rick DearmanDate: 2000-02-17 13:33:27
Subject: OID insert fails between MS-Access 2000 and Postgresql 6.5.2

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