Received: from mail.shadow.net ([204.177.71.247]) by hub.org (8.9.1/8.9.1) with ESMTP id VAA07991 for ; Fri, 20 Nov 1998 21:57:15 -0500 (EST) (envelope-from rbarr@shadow.net) Received: from shadow.net (ppp-199.shadow.net [207.17.58.219]) by mail.shadow.net (8.8.8/8.7.3) with ESMTP id WAA25424 for ; Fri, 20 Nov 1998 22:03:50 -0500 (EST) Sender: root@mail.shadow.net Message-ID: <3655E0B8.6963D1DD@shadow.net> Date: Fri, 20 Nov 1998 16:35:53 -0500 From: Randy Barrett X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.0.34 i586) MIME-Version: 1.0 To: pgsql-interfaces@postgresql.org Subject: Linking problems Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I wrote a trivial (so I didn't include, but I will if I must...) C program using the libpq C interface which compiles cleanly. My problem is with the linker. There are two files, one contains (tested) code for a standard set of cgi functions and the other contains code that calls the db. Here's the gcc command I'm using: gcc login.c stdcgi.c -I /usr/local/pgsql/include/ -L /usr/local/pgsql/lib/ -lpq And here's the error I'm getting: /usr/local/pgsql/lib//libpq.a(fe-auth.o): In function `pg_password_sendauth': fe-auth.o(.text+0x17): undefined reference to `crypt' I haven't dug through the postgreSQL code and perhaps I haven't read the user manual thoroughly enough, but I'm not making any calls to "pg_password_sendauth", so I'm confused with this error message. Any help would be appreciated. Randy Barrett rbarr@shadow.net