Re: Libpq.dll
Re: Libpq.dll
От:
Adrian Klaver <adrian.klaver@aklaver.com>
Дата:
On 8/6/25 06:17, suporte02@unitsistemas.com.br wrote: > Hello, how are you? I'm asking for help. When I try to compile a 32-bit > executable, in my 32-bit Delphi as well, in my 64-bit operating system, > an error appears about libpq.dll, saying that it was found, but not > loaded. Can you help me with this? 1) Please do not use whatever HTML markup/image you wrote the previous post in. 2) This needs more information: a) OS and version of same. b) The configuration and compilation steps you took. c) The complete error message. > > -- Adrian Klaver adrian.klaver@aklaver.com
Re: Libpq.dll
От:
Merlin Moncure <mmoncure@gmail.com>
Дата:
On Wed, Aug 6, 2025 at 11:46 AM Adrian Klaver wrote: > > On 8/6/25 06:17, suporte02@unitsistemas.com.br wrote: > > Hello, how are you? I'm asking for help. When I try to compile a 32-bit > > executable, in my 32-bit Delphi as well, in my 64-bit operating system, > > an error appears about libpq.dll, saying that it was found, but not > > loaded. Can you help me with this? I Haven't used delphi in years (and was more C++ builder), but IIRC there is a provided tool that extracts a static lib from a .dll. You can then static link that, it will likely help you out as long as your headers are set up right. Good luck! merlin
Re: Libpq.dll
От:
Adrian Klaver <adrian.klaver@aklaver.com>
Дата:
On 8/6/25 11:24, suporte02@unitsistemas.com.br wrote: > > > The executable's libpq is 32-bit, and its dependencies are correct and > on the same architecture. In my Postgres, libpq was on a 64-bit You need to give more details on what '... my Postgres ...' is? Did you download it as package or did you build it? In either case what was the source? > architecture, so I downloaded the 32-bit libdll, and the error still > persisted. > > c)"Error Message: Client-Library > libpq.dll found but could not be loaded. Check compile-target and > library compatibility!" Looks like you are mixing 32/64 bit libraries. -- Adrian Klaver adrian.klaver@aklaver.com
Re: Libpq.dll
От:
Adrian Klaver <adrian.klaver@aklaver.com>
Дата:
On 8/7/25 05:14, suporte02@unitsistemas.com.br wrote: > When I say "my Postgres", I mean the Postgres 15.3 that I have installed. > > How about 32-bit lib.dlls? I downloaded them from Google, placed them in > my executable folder and in the Bin and Lib folders of my Postgres 15.3, > and then extracted the package into the folders. > > The link where I downloaded the 32-bit lib.dlls was this: > https://ftp.postgresql.org/pub/odbc/versions.old/dll/ > psqlodbc_15_00_0000-x64.zip versions.old/dll/psqlodbc_15_00_0000-x64.zip> > > I I believe so, it's a mix of 32-bit and 64-bit libraries. I just can't > figure out how to fix it, since I already placed the 32-bit libraries in > the Postgres Lib and Bin folders. I would say the chances of this working, given the information provided, is slim to none. From what I see you are trying to compile a 32 bit executable on a 64 bit platform using miscellaneous files found on the Internet. Per a previous post of mine, steps to getting some direction on this will need at minimum: b) The configuration and compilation steps you took. c) The complete error message. -- Adrian Klaver adrian.klaver@aklaver.com