Re: pgsql and lion : not taking good header at compilation. - Mailing list pgsql-novice

From Tom Lane
Subject Re: pgsql and lion : not taking good header at compilation.
Date
Msg-id 16157.1341239394@sss.pgh.pa.us
Whole thread Raw
In response to pgsql and lion : not taking good header at compilation.  (Pierre-Henry Frohring <pierre.julienr@gmail.com>)
List 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 by date:

Previous
From: Pierre-Henry Frohring
Date:
Subject: pgsql and lion : not taking good header at compilation.
Next
From: JORGE MALDONADO
Date:
Subject: Volume Shadow Copy