Skip site navigation (1) Skip section navigation (2)

Re: Problems compiling test program program form pgsql

From: Hugh Lawson <hlawson(at)triad(dot)rr(dot)com>
To: Miguel Fernandez <miguelfernandez(at)bridge(dot)com(dot)br>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Problems compiling test program program form pgsql
Date: 2000-06-04 02:47:56
Message-ID: Pine.LNX.4.10.10006032243020.2663-100000@localhost.localdomain (view raw or flat)
Thread:
Lists: 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(at)triad(dot)rr(dot)com



In response to

Responses

pgsql-novice by date

Next:From: Jochen SchmidtDate: 2000-06-04 09:20:17
Subject: isnull or coalesce isn't working
Previous:From: D. DucciniDate: 2000-06-04 02:16:40
Subject: Re: Problems compiling test program program form pgsql

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group