Re: problems in compiling

Поиск
Список
Период
Сортировка
От bmccoy@chapelperilous.net
Тема Re: problems in compiling
Дата
Msg-id Pine.LNX.4.10.10010092152050.4175-100000@chapelperilous.net
обсуждение исходный текст
Ответ на problems in compiling  ("Mathew Chandy" <mathew.chandy@eximsoft.com>)
Список pgsql-general
On Thu, 5 Oct 2000, Mathew Chandy wrote:

> i get a compilation error which is of the following
>
> /tmp/ccTCPDUs.o(.text+0x77): undefined reference to `PQstatus'

...

>
> what is the reason . i use the folowing command line cc file.c

It's trying to resolve external references (link) in your executable but
you haven't told it to link against the Postgres libraries.  Try

cc file.c -lpq

Brett W. McCoy
                                              http://www.chapelperilous.net
---------------------------------------------------------------------------
The Kennedy Constant:
    Don't get mad -- get even.



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

Предыдущее
От: bmccoy@chapelperilous.net
Дата:
Сообщение: Re: distinct
Следующее
От:
Дата:
Сообщение: Re: Question