| From: | "Michael Ansley (UK)" <Michael(dot)Ansley(at)intec-telecom-systems(dot)com> |
|---|---|
| To: | "'gbrace(at)cais(dot)com'" <gbrace(at)cais(dot)com>, pgsql-interfaces(at)postgresql(dot)org |
| Subject: | RE: libpq problem - kdevelop |
| Date: | 2001-08-02 12:36:46 |
| Message-ID: | 7F124BC48D56D411812500D0B747251480F656@fileserver002.intecsystems.co.uk |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-interfaces |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
In your linker options you are using the include directory, not the
lib directory. It should probably read:
linker options-> additional libraries: -lpq -L/usr/local/pgsql/lib
Cheers...
MikeA
>> -----Original Message-----
>> From: Gary S. Brace [mailto:gbrace(at)cais(dot)com]
>> Sent: 31 July 2001 14:44
>> To: pgsql-interfaces(at)postgresql(dot)org
>> Subject: [INTERFACES] libpq problem - kdevelop
>>
>>
>> Hi,
>>
>> I cannot seem to be able to use libpq in a kdevelop c
>> program- I get the error
>> message upon execution: ./testpg: error loading shared libraries:
>> libpq.so.2: cannot load shared object file: No such file or
>> directory
>>
>> include:
>>
>> #include "libpq-fe.h"
>>
>> compiler options -> additional options: -I/usr/local/pgsql/include
>>
>> linker options-> additional libraries: -lpq
>> -L/usr/local/pgsql/include
>>
>> (/usr/local/pgsql) is the correct path. Anybody know what
>> I'm doing wrong?
>>
>> Thanks
>>
>> ---------------------------(end of
>> broadcast)---------------------------
>> TIP 4: Don't 'kill -9' the postmaster
>>
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.3 for non-commercial use <http://www.pgp.com>
iQA/AwUBO2lJP3ympNV/C086EQLZZgCg8z/nR+rIuA7rTsNfmuRHGx6SLx0AoIEP
l4OzEXziS+dhyk15+yVB/87A
=pA9J
-----END PGP SIGNATURE-----
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Mihai Gheorghiu | 2001-08-02 14:20:32 | ODBC driver installation error |
| Previous Message | Jean-Denis Girard | 2001-08-02 11:13:59 | Win16 ODBC driver |