Received: from cheylard.inforoutes-ardeche.fr (root@cheylard.inforoutes-ardeche.fr [195.101.206.1]) by hub.org (8.9.2/8.9.1) with ESMTP id KAA39696 for ; Fri, 26 Feb 1999 10:48:09 -0500 (EST) (envelope-from pdumas@inforoutes-ardeche.fr) Received: from blneige (ppp24.inforoutes-ardeche.fr [195.101.206.120]) by cheylard.inforoutes-ardeche.fr (8.9.2/8.9.2) with SMTP id QAA23994 for ; Fri, 26 Feb 1999 16:39:29 +0100 (MET) Message-ID: <000201be619f$64683d80$5f6cfea9@blneige> From: "Patrice DUMAS" To: Subject: undefined reference to crypt Date: Fri, 26 Feb 1999 15:49:22 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Hi, I am discovering PostGreSQL and Linux. I have a little problem with libpq. Here is my C program (it's empty!) /* --------- essai.c -------------------------- */ #include #include "/usr/lib/pgsql/include/libpq-fe.h" int main(void) { } /* ------------------------------------------- */ Here is my makefile: essai.o: essai.c gcc -c essai.c essai: essai.o gcc -o essai essai.o -lpq When I do "make essai", the following error appears: /usr/lib/libpq.so: undefined reference to crypt. collect2: ld retruned 1 exit status I suppose a file/library is missing. Can you help me? The postgres' programmer guide refers to several examples in /src/test/regress. These samples are not installed with my postgres distribution . Where can I download them (or other examples?). Sorry for my poor english and thank you for your answers, Patrice DUMAS Ardèche, FRANCE pdumas@inforoutes-ardeche.fr