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

undefined reference to `PgConnection type_info function'

From: Stein Eldar Johnsen <Stein(dot)Eldar(dot)Johnsen(at)idi(dot)ntnu(dot)no>
To: pgsql-novice(at)postgresql(dot)org
Subject: undefined reference to `PgConnection type_info function'
Date: 2002-03-19 15:28:23
Message-ID: 20020319162823.A19347@tienbao.studby.ntnu.no (view raw or flat)
Thread:
Lists: pgsql-novice
I Get this error message when trying to link my program. All I have is 
a "PgDatabase conn(<conninfo string>); ", and "cout << 
conn.ErrorMessage() << endl;" in my db.c++. If there is a library or 
something I have forgotten to include please tell ... Compilation was 
successfull witout any errors or warnings.

g++ -lpq++ asiagent.o db.o info.o -o 
/mnt/home/morimekta/stash/Skole/Prosjekt/asiagent/bin/asiagent
db.o: In function `PgDatabase type_info function':
db.o(.gnu.linkonce.t.__tf10PgDatabase+0x10): undefined reference to 
`PgConnection type_info function'
db.o(.gnu.linkonce.t.__tf10PgDatabase+0x1a): undefined reference to 
`PgConnection type_info node'
collect2: ld returned 1 exit status

Morimekta (Stein E. Johnsen)

pgsql-novice by date

Next:From: RobDate: 2002-03-19 16:40:20
Subject: Triggers in postgres
Previous:From: Henshall, Stuart - WCPDate: 2002-03-19 11:20:50
Subject: Re: Triggers in postgres

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