| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Pierre-Henry Frohring <pierre(dot)julienr(at)gmail(dot)com> |
| Cc: | pgsql-novice(at)postgresql(dot)org |
| Subject: | Re: pgsql and lion : not taking good header at compilation. |
| Date: | 2012-07-02 14:29:54 |
| Message-ID: | 16157.1341239394@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-novice |
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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | JORGE MALDONADO | 2012-07-02 15:25:56 | Volume Shadow Copy |
| Previous Message | Pierre-Henry Frohring | 2012-07-02 10:31:58 | pgsql and lion : not taking good header at compilation. |