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

From Miguel Fernandez
Subject Problems compiling test program program form pgsql
Date
Msg-id 000001bfcda9$b6899420$6e7ef4c8@miguelga
Whole thread Raw
Responses Re: Problems compiling test program program form pgsql
Re: Problems compiling test program program form pgsql
List 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 .

pgsql-novice by date:

Previous
From: ghaverla@freenet.edmonton.ab.ca
Date:
Subject: Re: Re: Out of disk space
Next
From: "D. Duccini"
Date:
Subject: Re: Problems compiling test program program form pgsql