[Lazarus] Win32 postgres unit compilation error
Péter Gábor
ptrg at freemail.hu
Thu Jun 19 09:10:47 CEST 2014
This issue is no way related to FPC or Lazarus. External software
libraries are not distributed with FPC/Lazarus except if they are needed
to run.
You must have libpq.dll and libc.dll (or libcrypt.dll if you modify the
source of postgres units) installed on your windows system on a path
where your software can fin it!
The _PQsetdbLogin symbol is undefined because the related libraries
ain't loaded.
On your Linux these libraries are already installed.
2014-06-19 07:45 keltezéssel, Allan E. Registos írta:
> I have found out that the postgres unit in Lazarus(I have tested with
> 1.2.0 and 1.2.4 versions) will cause compilation errors on Windows, but
> will work fine in Linux.
> Errors:
> Error: Import library not found for pq
> Error: Import library not found for c
> Error: Undefined symbol: _PQsetdbLogin
> Is this a known issue? I am trying to use the postgres unit to talk
> directly to the pg server.
--
Péter Gábor
ptrg at freemail.hu
More information about the Lazarus
mailing list