Re: [INTERFACES] libpq linking problem

Поиск
Список
Период
Сортировка
От Michael Meskes
Тема Re: [INTERFACES] libpq linking problem
Дата
Msg-id 19991213104635.A1990@fam-meskes.de
обсуждение исходный текст
Ответ на libpq linking problem  (Emil Malmberg <emil@iconmedialab.dk>)
Список pgsql-interfaces
On Mon, Dec 13, 1999 at 09:59:45AM +0100, Emil Malmberg wrote:
> I'm considering using postgreSQL via the libpq interface with an
> application I'm developing in C. I tried compiling one of the example

I hope you know that there is also an embedded SQL interface. :-)

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

Just add -lcrypt. Glibc2 needs to add it.

Michael
-- 
Michael Meskes                         | Go SF 49ers!
Th.-Heuss-Str. 61, D-41812 Erkelenz    | Go Rhein Fire!
Tel.: (+49) 2431/72651                 | Use Debian GNU/Linux!
Email: Michael@Fam-Meskes.De           | Use PostgreSQL!


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

Предыдущее
От: Emil Malmberg
Дата:
Сообщение: libpq linking problem
Следующее
От: David Osborne
Дата:
Сообщение: Duplicate INSERTS into pgsql table via PHP