Re: [INTERFACES] Problems in compilation of Sample1

From: "Randall W(dot) Barrett" <rbarr(at)shadow(dot)net>
To: José López Requena <jrequena(at)cc-ab(dot)uclm(dot)es>
Cc: pgsql-interfaces(at)hub(dot)org
Subject: Re: [INTERFACES] Problems in compilation of Sample1
Date: 1999-01-09 05:33:13
Message-ID: Pine.SOL.3.96.990109003101.9945A-100000@viper
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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] Lpez 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!
>
>
>

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Peter T Mount 1999-01-09 11:54:16 Re: [INTERFACES] Kaffe 1.0b3 Solved yet?
Previous Message José López Requena 1999-01-09 01:47:22 Problems in compilation of Sample1