From: G. Anthony Reina <reina@nsi.edu>
To: John E. Garrott <johnga@primenet.com>
To: reina@nsi.edu, "pgsql-questions@postgresql.org" <pgsql-sql@postgreSQL.org>
Subject: Re: [SQL] C compiler error when using PostGres
Date: Thu, 24 Sep 1998 14:21:16 -0700
Message-ID: <360AB7CC.C1F95E79@nsi.edu> (raw)
References: <360AAC02.46F2B123@nsi.edu>
<360AAFD5.57A45E56@primenet.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: reina@nsi.edu, johnga@primenet.com
Subject: Re: [SQL] C compiler error when using PostGres
In-Reply-To: <360AB7CC.C1F95E79@nsi.edu>
References: <360AAC02.46F2B123@nsi.edu> <360AAFD5.57A45E56@primenet.com> <360AB7CC.C1F95E79@nsi.edu>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox