Received: from backupserver.opuslibani.org.lb ([194.126.141.6]) by hub.org (8.8.8/8.7.5) with ESMTP id EAA16836 for ; Tue, 30 Jun 1998 04:09:24 -0400 (EDT) Received: from apotres.edu.lb ([194.126.141.103]) by backupserver.opuslibani.org.lb (Netscape Messaging Server 3.01) with ESMTP id 64 for ; Tue, 30 Jun 1998 10:17:50 +0300 Message-ID: <35989254.597B3750@apotres.edu.lb> Date: Tue, 30 Jun 1998 10:23:00 +0300 From: "rony khoury" X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: "pgsql-interfaces@postgresql.org" Subject: compile error Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit hello , can somebody explain to me why when I compile the following program i do not know how to link the libraries to c . --------------------- #include #include "libpq-fe.h" void exit_nicely(PGconn* conn) { PQfinish(conn); exit(1); } main() { printf("\nThe End\n") ; } ----------------------- I get the following error tmp/cca006421.o: In function `exit nicely' tmp/cca006421.o(.text+0x8): undefined reference to `PQfinish' Thanks , Rony .