Received: from byways.org (byways.org [206.81.134.101]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f2U6a6K71427 for ; Fri, 30 Mar 2001 01:36:06 -0500 (EST) (envelope-from sl1fm@cc.usu.edu) Received: from hanssl (sl1fm.dorms.usu.edu [129.123.233.97]) by byways.org (8.11.0/8.8.7) with SMTP id f2U6UdU24020 for ; Thu, 29 Mar 2001 23:30:39 -0700 Message-ID: <003601c0b8e3$b2693460$61e97b81@usu.edu> From: "Shane Hansen" To: Subject: c++ compile/link problem Date: Thu, 29 Mar 2001 23:36:05 -0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0033_01C0B8A9.05C738E0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200103/210 X-Sequence-Number: 1372 This is a multi-part message in MIME format. ------=_NextPart_000_0033_01C0B8A9.05C738E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 w= hen 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::PgConnec= tion( char const *)' /tmp/cc38u8Jz.o(.text+0x4e): undefined reference to `PgConnection::~PgConne= ction (void)' collect2: ld returned 1 exit status What am I doing wrong? Shane Hansen ------=_NextPart_000_0033_01C0B8A9.05C738E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I am struggling trying to get a connection= to my=20 postgres database from a c++ program.  I have read the documention and= =20 looked at many examples, but when I try to compile the code I get the same = type=20 errors every time.  They look like:
 
/tmp/cc38u8Jz.o: In function=20 `main':
/tmp/cc38u8Jz.o(.text+0x3b): undefined reference to=20 `PgConnection::PgConnection(
char const *)'
/tmp/cc38u8Jz.o(.text+0x4= e):=20 undefined reference to `PgConnection::~PgConnection
(void)'
collect2:= ld=20 returned 1 exit status
 
What am I doing wrong?
 
Shane Hansen
------=_NextPart_000_0033_01C0B8A9.05C738E0--