Re: Can't link to libpq

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Can't link to libpq
Дата
Msg-id 12138.1027084574@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Can't link to libpq  ("Jim Morcombe" <jim@byronics.com.au>)
Список pgsql-general
"Jim Morcombe" <jim@byronics.com.au> writes:
> However, I get the following errors:

> Undefined symbol
> PQfinish
> PQsetdbLogin
> pqstatus
> fprint
> PQerrorMessage

At least two of those are obviously your own typos (fprint presumably
should be fprintf, and pqstatus should be PQstatus).  The others look
like they should have worked, but I'm kinda suspicious that there's
another typo lurking somewhere.  Since you did not get link errors for
PQexec and several other library routines that are used in example 1-1,
it seems clear that you are successfully linking to libpq.so.  Why are
these three names failing?  I dunno, but I suspect typos ...

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: OIDs (Or: another RTFM question?)
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: select a ranking