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

c++ compile/link problem

From: "Shane Hansen" <sl1fm(at)cc(dot)usu(dot)edu>
To: <pgsql-interfaces(at)postgresql(dot)org>
Subject: c++ compile/link problem
Date: 2001-03-30 06:36:05
Message-ID: 003601c0b8e3$b2693460$61e97b81@usu.edu (view raw or flat)
Thread:
Lists: pgsql-interfaces
I am struggling trying to get a connection to my postgres database from a c++ program.  I have read the documention and looked at many examples, but when I try to compile the code I get the same type errors every time.  They look like:

/tmp/cc38u8Jz.o: In function `main':
/tmp/cc38u8Jz.o(.text+0x3b): undefined reference to `PgConnection::PgConnection(
char const *)'
/tmp/cc38u8Jz.o(.text+0x4e): undefined reference to `PgConnection::~PgConnection
(void)'
collect2: ld returned 1 exit status

What am I doing wrong?

Shane Hansen

Responses

pgsql-interfaces by date

Next:From: J. T. VermeulenDate: 2001-03-30 12:24:45
Subject: Re: c++ compile/link problem
Previous:From: Bruce MomjianDate: 2001-03-30 03:12:45
Subject: User administration tool

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