Re: Problems compiling test program program form pgsql - Mailing list pgsql-novice

From Hugh Lawson
Subject Re: Problems compiling test program program form pgsql
Date
Msg-id Pine.LNX.4.10.10006032243020.2663-100000@localhost.localdomain
Whole thread Raw
In response to Problems compiling test program program form pgsql  ("Miguel Fernandez" <miguelfernandez@bridge.com.br>)
Responses Re: Problems compiling test program program form pgsql
List pgsql-novice
On Sat, 3 Jun 2000, Miguel Fernandez wrote:

>     Hi , I've got a problem compiling the test program in the programmers guide.
>     t frist how I do to link libpg.a in gcc and g++ ?
>
>     Later I've got the screen :
>
>     $bash: g++ test.C -o test.o -o test /usr/lib/libpg.a     // my libpg.a is in /usr/lib
>      /usr/lib/libpq.a (fe-auth.o) : in function 'pg_password_sendauth' :
>      fe_auth.o(.text+0x27):undefined reference to 'crypt'

I believe that if you add a '-l' option to your compile command it will
work:

<To your presend command add>  -lcrypt




--
Hugh Lawson
Greensboro, North Carolina
hlawson@triad.rr.com



pgsql-novice by date:

Previous
From: "D. Duccini"
Date:
Subject: Re: Problems compiling test program program form pgsql
Next
From: Jochen Schmidt
Date:
Subject: isnull or coalesce isn't working