Pierre-Henry Frohring <pierre(dot)julienr(at)gmail(dot)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 install of 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