Problems with libpq

From: "Jason Lam"<jasonlam(at)flashmail(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Problems with libpq
Date: 1999-05-26 04:28:45
Message-ID: 374b6a6d.218.0@flashmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

I am currently having problems with libpq. In my program I am trying to connect
to the postgre database and get data from it by SELECT.

In the begining of my program, I have a line #include "/usr/include/pgsql/libpq-fe.h"
which should get the libpq to work, however, whenever I use libpq function,
I get error msg like /tmp/ccCyqMcP.o(.text+0x66): undefined reference to `PQsetdbLogin'

/tmp/ccCyqMcP.o(.text+0x77): undefined reference to `PQstatus'
/tmp/ccCyqMcP.o(.text+0xa1): undefined reference to `PQerrorMessage'
/tmp/ccCyqMcP.o(.text+0xcf): undefined reference to `PQclear'
/tmp/ccCyqMcP.o(.text+0xe0): undefined reference to `PQexec'

Can anyone please tell me why I am having this problem?

Jason Lam
______________________________________________________
Get Your FREE FlashMail Address now at http://www.flashmail.com
It's Free, Easy, & Fun !!!

Browse pgsql-interfaces by date

  From Date Subject
Next Message Michael Meskes 1999-05-26 08:42:31 Re: [INTERFACES] ECPG feature
Previous Message Matthew Hagerty 1999-05-26 03:54:58 Shared lib grief with 6.4.2