Re: [INTERFACES] Problems in compilation of Sample1 - Mailing list pgsql-interfaces

From Randall W. Barrett
Subject Re: [INTERFACES] Problems in compilation of Sample1
Date
Msg-id Pine.SOL.3.96.990109003101.9945A-100000@viper
Whole thread Raw
In response to Problems in compilation of Sample1  (José López Requena <jrequena@cc-ab.uclm.es>)
List pgsql-interfaces
Jose,

add -lcrypt to the end of your compiler directives, i.e.

gcc -o sample1 sample1.c -lecpg -lpq -lcrypt


    Randy Barrett

On Sat, 9 Jan 1999, [iso-8859-1] Jos�[iso-8859-1]  L�pez  Requena wrote:

> Hi everybody!,I am tryng to compile the Sample Program 1 that comes with
> the programmer's guide of PostgreSQL documentation. I've copied the
> developement librarys to /usr/lib and the include files to /usr/include.
> When I type gcc -o sample1 sample1.c -lecpg -lpq the compiler tells me:
>
> /usr/lib/libecpg.so:undefined reference to 'crypt'
>
> can you help me about the meaning of this error message.
>
> Thanks!
>
>
>


pgsql-interfaces by date:

Previous
From: José López Requena
Date:
Subject: Problems in compilation of Sample1
Next
From: Peter T Mount
Date:
Subject: Re: [INTERFACES] Kaffe 1.0b3 Solved yet?