|
kusano |
7d535a |
Building instructions for the DLL versions of Zlib 1.2.7
|
|
kusano |
7d535a |
========================================================
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
This directory contains projects that build zlib and minizip using
|
|
kusano |
7d535a |
Microsoft Visual C++ 9.0/10.0.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
You don't need to build these projects yourself. You can download the
|
|
kusano |
7d535a |
binaries from:
|
|
kusano |
7d535a |
http://www.winimage.com/zLibDll
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
More information can be found at this site.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Build instructions for Visual Studio 2008 (32 bits or 64 bits)
|
|
kusano |
7d535a |
--------------------------------------------------------------
|
|
kusano |
7d535a |
- Uncompress current zlib, including all contrib/* files
|
|
kusano |
7d535a |
- Compile assembly code (with Visual Studio Command Prompt) by running:
|
|
kusano |
7d535a |
bld_ml64.bat (in contrib\masmx64)
|
|
kusano |
7d535a |
bld_ml32.bat (in contrib\masmx86)
|
|
kusano |
7d535a |
- Open contrib\vstudio\vc9\zlibvc.sln with Microsoft Visual C++ 2008
|
|
kusano |
7d535a |
- Or run: vcbuild /rebuild contrib\vstudio\vc9\zlibvc.sln "Release|Win32"
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Build instructions for Visual Studio 2010 (32 bits or 64 bits)
|
|
kusano |
7d535a |
--------------------------------------------------------------
|
|
kusano |
7d535a |
- Uncompress current zlib, including all contrib/* files
|
|
kusano |
7d535a |
- Open contrib\vstudio\vc10\zlibvc.sln with Microsoft Visual C++ 2010
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Important
|
|
kusano |
7d535a |
---------
|
|
kusano |
7d535a |
- To use zlibwapi.dll in your application, you must define the
|
|
kusano |
7d535a |
macro ZLIB_WINAPI when compiling your application's source files.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Additional notes
|
|
kusano |
7d535a |
----------------
|
|
kusano |
7d535a |
- This DLL, named zlibwapi.dll, is compatible to the old zlib.dll built
|
|
kusano |
7d535a |
by Gilles Vollant from the zlib 1.1.x sources, and distributed at
|
|
kusano |
7d535a |
http://www.winimage.com/zLibDll
|
|
kusano |
7d535a |
It uses the WINAPI calling convention for the exported functions, and
|
|
kusano |
7d535a |
includes the minizip functionality. If your application needs that
|
|
kusano |
7d535a |
particular build of zlib.dll, you can rename zlibwapi.dll to zlib.dll.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
- The new DLL was renamed because there exist several incompatible
|
|
kusano |
7d535a |
versions of zlib.dll on the Internet.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
- There is also an official DLL build of zlib, named zlib1.dll. This one
|
|
kusano |
7d535a |
is exporting the functions using the CDECL convention. See the file
|
|
kusano |
7d535a |
win32\DLL_FAQ.txt found in this zlib distribution.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
- There used to be a ZLIB_DLL macro in zlib 1.1.x, but now this symbol
|
|
kusano |
7d535a |
has a slightly different effect. To avoid compatibility problems, do
|
|
kusano |
7d535a |
not define it here.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Gilles Vollant
|
|
kusano |
7d535a |
info@winimage.com
|