Peter Vreman peter at freepascal.org
Fri Apr 27 09:37:45 CEST 2001

> Hello everyone!
> Please reply in private too, because I'm not on list. I trried to
> subscribe, but I couldn't.
> I'm trying to reach a postgresql 6.5 server from a freepascal program,
> but if I want to run it from IDE it gives me an error message:
> _______________
> Invalid filename
> c:\pp\source\packages\postgres\testpg1_.exe
> --------------------------
> It really didn't made the exe. If I want to compile from command-prompt,
> it says:
> ___
> Compiling testpg1_.pp
> Linking testpg1_.exe
> -: cannot find -lpq
> testpg1_.pp(106,1) Warning: Error while linking
> Closing script ppas.bat
> 106 Lines compiled, 0.8 sec
> ___
> How I find out what is his problem with my program.

You'll need to have a libpq.a or libpq.so for the platform you want to compile for. AFAIK
the unit is only supported for linux and freebsd. If you want to create a dos or win32
program with progress you'll need first to build this library if that is possible.

More information about the fpc-pascal mailing list