Re: DLL Problems

From: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: 'lmanorders *EXTERN*' <lmanorders(at)gmail(dot)com>, "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: DLL Problems
Date: 2015-05-29 08:16:57
Message-ID: A737B7A37273E048B164557ADEF4A58B366179D2@ntex2010i.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

lmanorders wrote:
> I’m running Windows 7, 64 bit, C++ Builder XE6, and Postgres 9.4.1. I’m using libpq to interface with
> Postgres. I’m using the DLLs that are installed (pre-compiled) with Postgres 9.4.1.
>
> I’m having problems finding a set of DLLs that work together properly. The dependencies to libpq.dll
> are shown as ssleay32.dll, libeay32.dll, libintl.dll, and msvcr100.dll. If I use the DLLs that came
> with Postgres 9.3, everything seems to work just fine. If I try to use libpq.dll, ssleay32.dll, and
> libeay32.dll, that come with Postgres 9.4, and the latest versions of libintl.dll and msvcr100.dll
> that I can find, I get the message “The application was unable to start correctly (0xC000007b)”.
>
> The libpq.dll (9.4 version) seems to be having problems with one or more of the other DLLs. Does
> anyone know what versions of these DLLs will work properly together?

I don't know a lot about Windows.

First, why are you trying to use the precompiled libpq.dll you have with other libraries
than the ones that were included?

For one, I know that EDB's PostgreSQL binaries use a different C runtime (msvc*.dll)
for versions 9.3 and 9.4. Maybe that is your problem.

There is an excellent tool, Dependency Walker (http://dependencywalker.com/)
that can help you debug problems of this kind.

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Hans Ginzel 2015-05-29 11:18:02 Re: psql readline Tab insert tab
Previous Message Shashwat Arghode 2015-05-29 06:13:06 Re: [SQL] Drop or disable or bypass "_return" rule on select on a view.