Received: from golem.jpl.nasa.gov (IDENT:postfix@dialin-076.jpl.nasa.gov [128.149.231.76]) by hub.org (8.10.1/8.11.0) with ESMTP id e9S1LEZ14182 for ; Fri, 27 Oct 2000 21:21:14 -0400 (EDT) (envelope-from lockhart@alumni.caltech.edu) Received: from alumni.caltech.edu (localhost.localdomain [127.0.0.1]) by golem.jpl.nasa.gov (Postfix) with ESMTP id 6422AE7D3; Sat, 28 Oct 2000 01:37:46 +0000 (UTC) Message-ID: <39FA2DEA.EB6F7DAA@alumni.caltech.edu> Date: Sat, 28 Oct 2000 01:37:46 +0000 From: Thomas Lockhart Organization: Yes X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.15-4mdksmp i686) X-Accept-Language: en MIME-Version: 1.0 To: "Gustavo R. Bonet" Cc: pgsql-interfaces@postgresql.org Subject: Re: C program compilation References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/250 X-Sequence-Number: 1609 > Like the documentation says, I'm using the following sentence to compile: > gcc -o output_name -I /usr/include/pgsql -lpq myprogram.c > /usr/lib/libpq.so: undefined reference to `crypt' > collect2: ld returned 1 exit status Try adding "-lcrypt" to the line. - Thomas