Re: [SQL] C compiler error when using PostGres - Mailing list pgsql-sql

From G. Anthony Reina
Subject Re: [SQL] C compiler error when using PostGres
Date
Msg-id 360AB7CC.C1F95E79@nsi.edu
Whole thread Raw
In response to C compiler error when using PostGres  ("G. Anthony Reina" <reina@nsi.edu>)
List pgsql-sql
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

pgsql-sql by date:

Previous
From: "John E. Garrott"
Date:
Subject: Re: [SQL] C compiler error when using PostGres
Next
From: "G. Anthony Reina"
Date:
Subject: I can't seem to set the -B option on the postmaster over 3000