linking error

Поиск
Список
Период
Сортировка
От Randall W. Barrett
Тема linking error
Дата
Msg-id Pine.SOL.3.96.981211144648.1187A-100000@viper
обсуждение исходный текст
Ответы Re: [INTERFACES] linking error
Список pgsql-interfaces
I am running Redhat linux (2.0.34) and postgreSQL 6.3.2.  I'm trying to
use the C-interface via libpq, but I'm having linking problems.  The
following is the result when attempting to compile sample1 from the
postgres libpq documentation:

[rbarrett@localhost rbarrett]$ gcc -O3 -Wall sample1.c -I
/usr/local/pgsql/include/ -L /usr/local/pgsql/lib/ -lpq

/usr/local/pgsql/lib//libpq.a(fe-auth.o): In function
`pg_password_sendauth':
fe-auth.o(.text+0x17): undefined reference to `crypt'

Does anyone know how I can fix this?  Need I upgrade to 6.4?

Thanks,
    Randy Barrett




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

Предыдущее
От: "David A. Vásquez Estrada"
Дата:
Сообщение: suscribe
Следующее
От: Ramiro Arenas
Дата:
Сообщение: (no subject)