[Zlib-devel] zlib 1.2.5
William A. Rowe Jr.
wrowe at rowe-clan.net
Mon May 24 14:18:57 EDT 2010
On 5/24/2010 11:47 AM, Cosmin Truta wrote:
> On Mon, May 24, 2010 at 7:50 AM, <glennrp at comcast.net> wrote:
>> Should we now be distributing Gilles Vollant's zlib125dll.zip as the "official" Windows DLL?
>> i.e., from http://www.winimage.com/zLibDll/index.html
>
> That one won't work. It's ABI-incompatible, mainly because it uses a
> different, non-default calling convention (stdcall). Even leaving
> backwards compatibility aside, we'll run again into the problems that
> we had some 10 years ago in libpng, when switching between DLL-enabled
> and non-DLL-enabled builds would lead to crashes, because of the
> different calling conventions used across these two kinds of builds.
Thanks for clarifying, Cosmin, recuperating from some hand surgery, but I can
get right on creating the ABI compatible flavor.
Gilles' is useful for some folks, but perhaps it should be zlib32.dll (e.g.
falling in the foo32.dll convention of typical win32 API libraries). That
would ensure, moving forwards, that zlib.dll can live in parallel w/ zlib32.dll
with no ill effects. (FWIW you can't even load this, because the two different
builds have different entry point names, if his lib is built correctly, the
names are @stack decorated).
More information about the Zlib-devel
mailing list