From: Shane Hansen <sl1fm@cc.usu.edu>
To: pgsql-interfaces@postgresql.org
Subject: c++ compile/link problem
Date: Thu, 29 Mar 2001 23:36:05 -0700
Message-ID: <003601c0b8e3$b2693460$61e97b81@usu.edu> (raw)
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
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: sl1fm@cc.usu.edu
Subject: Re: c++ compile/link problem
In-Reply-To: <003601c0b8e3$b2693460$61e97b81@usu.edu>
* 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