Re: Compiling .pgc programs gives error

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Compiling .pgc programs gives error
Дата
Msg-id 6775.1266604204@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Compiling .pgc programs gives error  ("mike stanton" <mstanton@acsa.cl>)
Список pgsql-general
"mike stanton" <mstanton@acsa.cl> writes:
> I have a problem compiling pgc programs with ecpg.
> I always get the following error:

> /usr/local/pgsql/lib/libpgtypes.a(timestamp.o): In function `timestamp2tm':
> timestamp.c:(.text+0x2fc): undefined reference to `rint'

Seems like you need to add "-lm" to your link command.  Or consider
linking to libpgtypes.so instead of libpgtypes.a --- .so's generally
carry information about libraries they depend on, which .a's don't.

            regards, tom lane

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

Предыдущее
От: "mike stanton"
Дата:
Сообщение: Compiling .pgc programs gives error
Следующее
От: David Fetter
Дата:
Сообщение: Re: GROUP BY column alias?