pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jason Lam <jasonlam@flashmail.com>
To: pgsql-interfaces@postgresql.org
Subject: Problems with libpq
Date: Tue, 25 May 1999 20:28:45 -800
Message-ID: <374b6a6d.218.0@flashmail.com> (raw)

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 !!!



Message-ID: <374b6a6d.218.0@flashmail.com>
Permalink:  ../374b6a6d.218.0@flashmail.com/
Also on:    postgresql.org/message-id/374b6a6d.218.0@flashmail.com

 · 

reply

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: jasonlam@flashmail.com
  Subject: Re: Problems with libpq
  In-Reply-To: <374b6a6d.218.0@flashmail.com>

* 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