Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2001-04

freepascal+dos+postgres

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Kassai Istvan

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.

Thanks for everyone who try to help me.

Peter Vreman
Show quoted text 23 lines
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.