Problems compiling test program program form pgsql

From: "Miguel Fernandez" <miguelfernandez(at)bridge(dot)com(dot)br>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: Problems compiling test program program form pgsql
Date: 2000-06-03 21:57:03
Message-ID: 000001bfcda9$b6899420$6e7ef4c8@miguelga
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

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'
collect2 : ld reurned 1 exit status
$bash :

Note : my computer runs a linux red hat Conectiva 3.0 installed with postgres 6.5.2.

If someone can help-me I will be very gateful .

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message D. Duccini 2000-06-04 02:16:40 Re: Problems compiling test program program form pgsql
Previous Message ghaverla 2000-06-03 15:51:37 Re: Re: Out of disk space