If the libraries are installed on your windows, maybe you try static linking... DLL files cannot be statically linked.
> 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 [email protected] -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
