Re: [SQL] C compiler error when using PostGres

From: "G(dot) Anthony Reina" <reina(at)nsi(dot)edu>
To: "John E(dot) Garrott" <johnga(at)primenet(dot)com>, reina(at)nsi(dot)edu, "pgsql-questions(at)postgresql(dot)org" <pgsql-sql(at)postgreSQL(dot)org>
Subject: Re: [SQL] C compiler error when using PostGres
Date: 1998-09-24 21:21:16
Message-ID: 360AB7CC.C1F95E79@nsi.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message G. Anthony Reina 1998-09-24 22:22:26 I can't seem to set the -B option on the postmaster over 3000
Previous Message John E. Garrott 1998-09-24 20:47:17 Re: [SQL] C compiler error when using PostGres