Received: from hub.org.org (localhost [127.0.0.1]) by hub.org (8.10.1/8.11.0) with SMTP id e9RKEHZ71714 for ; Fri, 27 Oct 2000 16:14:17 -0400 (EDT) (envelope-from pgsql-interfaces-owner@hub.org) Received: from bna.com.ar (mail.bna.com.ar [200.32.104.67]) by hub.org (8.10.1/8.11.0) with ESMTP id e9RG9CJ39984 for ; Fri, 27 Oct 2000 12:09:23 -0400 (EDT) (envelope-from gbonet@bna.com.ar) Received: from WKSO03685 [10.2.248.3] by bna.com.ar with Novonyx SMTP Server $Revision: 1.76 $; Fri, 27 Oct 2000 13:07:14 -0300 (AGT) From: "Gustavo R. Bonet" To: Subject: C program compilation Date: Fri, 27 Oct 2000 13:07:12 -0300 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Archive-Number: 200010/245 X-Sequence-Number: 1604 I'm a beginner in PostGreSQL and I'm trying to meka my first interface with a C program. Like the documentation says, I'm using the following sentence to compile: gcc -o output_name -I /usr/include/pgsql -lpq myprogram.c But, in two diferent Linux servers the answer was: /usr/lib/libpq.so: undefined reference to `crypt' collect2: ld returned 1 exit status I have tryed with millons ways changing the order, including other paths, etc. ... and nothing. If you have the answer or can guide me to some "doc", please response this mail to: gbonet@bna.com.ar Thank you ! Gustavo R. Bonet Buenos Aires Argentina