Received: from flashmail.com (flashmail.com [209.63.137.8]) by hub.org (8.9.3/8.9.3) with SMTP id XAA19698 for ; Tue, 25 May 1999 23:27:57 -0400 (EDT) (envelope-from jasonlam@flashmail.com) Received: from flashmail.com ([209.63.137.8]) by flashmail.com ; Tue, 25 May 1999 20:28:45 -0800 From: "Jason Lam" Sender: jasonlam@flashmail.com Reply-to: jasonlam@flashmail.com To: pgsql-interfaces@postgresql.org Date: Tue, 25 May 1999 20:28:45 -800 Subject: Problems with libpq X-Mailer: CWMail Web to Mail Gateway 2.0n, http://netwinsite.com/top_mail.htm Message-id: <374b6a6d.218.0@flashmail.com> X-User-Info: 209.5.30.50 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 !!!