2
I’m trying to connect Zeos to a Postgresql database.
I already copied all the DLL’s to the application folder.
Zeos finds the DLL, but gives an incompatibility error:
Client-Library libpq.dll found but could not be Loaded. Check Compile-target and library Compatibility!
I already copied the DLL to windows and windows/system32 folder but I think the error is different.
My settings:
Windows 10 64bit - Postgresql 9 - Zeos 7.2.1 rc
EDITED
I downloaded the two versions of Postgresql (32bit and 64bit) and put the dll in two folders. When the application opens, the client has two connection options (32 or 64). I was able to connect on my pc using the 32bit, but when I tested on another pc (with the same settings), it did not work.
I already registered the DLL libpq.dll
, even so, the error persists on the other machine (On my connected).
Tries to copy to Windows/SYSWOW64 because your Windows is 64 bits.
– Andrey
In addition to Copy, it is important to register the DLL
regsvr32
..., remembering to point the regsvr32 path to the proper system path, 32/64– Junior Moreira
From the searches I made, the error is due to the 32bit DLL and the 64bit OS or vice versa. I was able to solve it on my computer, but when I went to another computer, I made the same mistake... @Júniormoreira knows if Delphi makes this record?
– Italo Rodrigo
In case the installation of Zeos must have done, then you must perform the registration:
regsvr32 caminho\nome_dll
– Junior Moreira
You mean to install the zeos on the client?
– Italo Rodrigo
No, register the DLL that is missing.
– Junior Moreira
did not work, even registering...
– Italo Rodrigo