When I try to run a program developed with Lazarus on windows I get an error that libpq.dll and libpq81.dll cannot be found.
I downloaded the latest postgresql 8.4 to ensure the libraries would be present but it didn't work. So I extracted one from an older pgAdmin 3 installer.
That works inside the IDE but when I try to run the program outside the I get the same error, and also one about a missing comerr32.dll.
Is there some package that contains all of these?
Does Zeoslib work with any Postgres 8.x libraries or only the one present when it is compiled?
/vfclists
Libraries for lipq.dll and libpq81.dll cannot be found
Moderators: gto, EgonHugeist
- simpsomboy
- Fresh Boarder
- Posts: 6
- Joined: 14.09.2005, 06:05
- simpsomboy
- Fresh Boarder
- Posts: 6
- Joined: 14.09.2005, 06:05
Try to put them in the path, specially for the IDE this could matter, because the working dir of the IDE is not very well defined under Delphi.
Under Lazarus it is compiletime and runtime defined to be the place where the .exe ends up, and afaik undefined otherwise.
I took the dlls from pgadmin3 installation btw, and they worked fine.
Under Lazarus it is compiletime and runtime defined to be the place where the .exe ends up, and afaik undefined otherwise.
I took the dlls from pgadmin3 installation btw, and they worked fine.
I had the same problem.
In the IDE put at Project->Options->Search Path the path to the ..\Postgres\Bin directory.
To have it perform Ok at run-time you have to go to
Start->Settings->Control Panel->System->Advanced->System Variables and
add the path to the ..\Postgres\Bin directory from your computer.
In the IDE put at Project->Options->Search Path the path to the ..\Postgres\Bin directory.
To have it perform Ok at run-time you have to go to
Start->Settings->Control Panel->System->Advanced->System Variables and
add the path to the ..\Postgres\Bin directory from your computer.