[Lazarus] Postgres Cannot connect

Joost van der Sluis joost at cnoc.nl
Mon Nov 21 18:02:47 CET 2011


On Mon, 2011-11-21 at 11:20 -0500, Tom Russell wrote:
> Using FPC 2.44 and the file it cannot find is libpq.dylib which is in
> Library/PostGreSQL/9.1/Bin

My guess is that that path is not in you library-search path. Try 'ld
--verbose' on the commandline. See which search-directories are used,
and add a symlink in one of them.

Or you can add the postgres3dyn unit to your uses-list, and call
'InitialisePostgres3('Library/PostGreSQL/9.1/Bin/libpq.dylib');' before
you do anything db-related.

-- 
My Lazarus blog: http://www.lazarussupport.com/lazarus/weblog





More information about the Lazarus mailing list