Re: C program compilation

Поиск
Список
Период
Сортировка
От Alfred Perlstein
Тема Re: C program compilation
Дата
Msg-id 20001027151511.J28123@fw.wintelcom.net
обсуждение исходный текст
Ответ на C program compilation  ("Gustavo R. Bonet" <gbonet@bna.com.ar>)
Список pgsql-interfaces
* Gustavo R. Bonet <gbonet@bna.com.ar> [001027 14:54] wrote:
> I'm a beginner in PostGreSQL and I'm trying to meka my first interface with
> a C
> program.
> 
> Like the documentation says, I'm using the following sentence to compile:
> 
> gcc -o output_name -I /usr/include/pgsql -lpq myprogram.c
> 
> But, in two diferent Linux servers the answer was:
> 
> /usr/lib/libpq.so: undefined reference to `crypt'
> collect2: ld returned 1 exit status

try adding '-lcrypt' to the compile flags.

-Alfred (who also stumbled on this)


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

Предыдущее
От: "Nikolaus Rumm"
Дата:
Сообщение: List archive, getBigDecimal()
Следующее
От: "Ross J. Reedstrom"
Дата:
Сообщение: Re: C program compilation