libpq linking problem

Поиск
Список
Период
Сортировка
От Emil Malmberg
Тема libpq linking problem
Дата
Msg-id Pine.LNX.4.10.9912130944040.8871-100000@emm.icondk.dk
обсуждение исходный текст
Список pgsql-interfaces
Hi!

I'm considering using postgreSQL via the libpq interface with an
application I'm developing in C. I tried compiling one of the example
programs (the first one) from the libpq documentation. I received the
following error:

% gcc test.c -lpq
/usr/lib/libpq.so: undefined reference to 'crypt'

Does anyone know what the problem might be? I'm on a Redhat Linux
2.2.5-15 system, with the following installations:
gcc: egcs 2.91.66
ld: 2.9.1
postgreSQL: 6.4.2-3

Thanks for your help.

-----
Emil Malmberg
Programmer
Icon Medialab Denmark

+45 3338 4958
emil@iconmedialab.dk
www.iconmedialab.dk



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

Предыдущее
От: Michael Meskes
Дата:
Сообщение: Re: [INTERFACES] ESQL/C Docs: Request for code
Следующее
От: Emil Malmberg
Дата:
Сообщение: libpq linking problem