Re: pgsql and lion : not taking good header at compilation.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql and lion : not taking good header at compilation.
Дата
Msg-id 16157.1341239394@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pgsql and lion : not taking good header at compilation.  (Pierre-Henry Frohring <pierre.julienr@gmail.com>)
Список pgsql-novice
Pierre-Henry Frohring <pierre.julienr@gmail.com> writes:
> I'm doing my first steps with postgre, and it seems that the Lion (10.7.4) install of postgre interferes with my
installof postgre (9.1.4). 

First off, it's "postgres" not "postgre".

> g++ db_test.o -o db_test -L /usr/local/pgsql/bin -lpq
> Undefined symbols for architecture x86_64:
>   "_PQpingParams", referenced from:
>       _main in db_test.o
> ld: symbol(s) not found for architecture x86_64

Most likely you need -L /usr/local/pgsql/lib not .../bin.  Use "otool -L"
on the resulting executable to verify that it's linked to the right
libpq.dylib file.

            regards, tom lane

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

Предыдущее
От: Pierre-Henry Frohring
Дата:
Сообщение: pgsql and lion : not taking good header at compilation.
Следующее
От: JORGE MALDONADO
Дата:
Сообщение: Volume Shadow Copy