Possible bug in postgres || libpq

Поиск
Список
Период
Сортировка
От hecong
Тема Possible bug in postgres || libpq
Дата
Msg-id 000701bef524$9fa6f760$861310ac@hecong.iinchina.net
обсуждение исходный текст
Список pgsql-bugs
my name               :      hecong
my email address      :      hecong@iinchina.net
 
System Configuration
 
Architecture:    Intel Pentium
Operating System:    RetHat    6.0
PostgreSQL version:    PostgreSQL-6.4.2
 
my problem
 
when I compiled my program ,  It report:
 
/usr/lib/libpq.a(fe-auth.o): In function `pg_password_sendauth':
fe-auth.o(.text+0x27): undefined reference to `crypt'
collect2: ld returned 1 exit status
 
why ?
 
my program :
#include <pgsql/libpq-fe.h>
main()
{
 PGconn * conn;
 conn=PQsetdb(NULL,NULL,NULL,NULL,"hecong");
}
 
compile: cc test.c /usr/lib/libpq.a

В списке pgsql-bugs по дате отправления:

Предыдущее
От: fredrik chabot
Дата:
Сообщение: subscribe
Следующее
От: Larry Rosenman
Дата:
Сообщение: Re: [NOVICE] createdb problem