Received: from nsi.edu (amethea.nsi.edu [198.133.185.9]) by hub.org (8.8.8/8.8.8) with ESMTP id RAA27456 for ; Thu, 24 Sep 1998 17:19:51 -0400 (EDT) (envelope-from reina@nsi.edu) Received: from nsi.edu (IDENT:reina@bigred.nsi.edu [204.128.156.214]) by nsi.edu (8.9.1/8.9.1) with ESMTP id OAA05192; Thu, 24 Sep 1998 14:19:41 -0700 (PDT) Sender: reina@nsi.edu Message-ID: <360AB7CC.C1F95E79@nsi.edu> Date: Thu, 24 Sep 1998 14:21:16 -0700 From: "G. Anthony Reina" Organization: The Neurosciences Institute X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.0.34 i686) MIME-Version: 1.0 To: "John E. Garrott" , reina@nsi.edu, "pgsql-questions@postgresql.org" Subject: Re: [SQL] C compiler error when using PostGres References: <360AAC02.46F2B123@nsi.edu> <360AAFD5.57A45E56@primenet.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit John E. Garrott wrote: > > ... Now, during compilation I get the following > > error: > > > > /database/local/pgsql/lib/libpq.a(fe-auth.o): In function > > `pg_password_sendauth': > > fe-auth.o(.text+0x17): undefined reference to `crypt' > > > > Anyone know how to fix this? > > > > Add -lcrypt to the end of the line that compiles the application. > > John Thanks John, That seems to have fixed it. Any idea why I didn't have to include that library before? Is crypt a PostGres library or a system library? -Tony