readme.txt 3.9 KB
Newer Older
M
Mark Adler 已提交
1 2
Building instructions for the DLL versions of Zlib 1.2.3
========================================================
M
Mark Adler 已提交
3

M
Mark Adler 已提交
4
This directory contains projects that build zlib and minizip using
M
Mark Adler 已提交
5
Microsoft Visual C++ 7.0/7.1/8.0/9.0/10.0, and Visual C++ .
M
Mark Adler 已提交
6

M
Mark Adler 已提交
7 8 9
You don't need to build these projects yourself. You can download the
binaries from:
  http://www.winimage.com/zLibDll
M
Mark Adler 已提交
10

M
Mark Adler 已提交
11
More information can be found at this site.
M
Mark Adler 已提交
12

M
Mark Adler 已提交
13 14 15 16
first compile assembly code by running
bld_ml64.bat in contrib\masmx64
bld_ml32.bat in contrib\masmx86

M
Mark Adler 已提交
17

M
Mark Adler 已提交
18 19 20
Build instructions for Visual Studio 7.x (32 bits)
--------------------------------------------------
- Uncompress current zlib, including all contrib/* files
M
Mark Adler 已提交
21 22
- Download the crtdll library from
    http://www.winimage.com/zLibDll/crtdll.zip
M
Mark Adler 已提交
23 24
  Unzip crtdll.zip to extract crtdll.lib on contrib\vstudio\vc7.
- Open contrib\vstudio\vc7\zlibvc.sln with Microsoft Visual C++ 7.x
M
Mark Adler 已提交
25
  (Visual Studio .Net 2002 or 2003).
M
Mark Adler 已提交
26

M
Mark Adler 已提交
27 28 29 30 31 32
Build instructions for Visual Studio 2005 (32 bits or 64 bits)
--------------------------------------------------------------
- Uncompress current zlib, including all contrib/* files
- For 32 bits only: download the crtdll library from
    http://www.winimage.com/zLibDll/crtdll.zip
  Unzip crtdll.zip to extract crtdll.lib on contrib\vstudio\vc8.
M
Mark Adler 已提交
33
- Open contrib\vstudio\vc8\zlibvc.sln with Microsoft Visual C++ 2005
M
Mark Adler 已提交
34 35 36

Build instructions for Visual Studio 2005 64 bits, PSDK compiler
----------------------------------------------------------------
M
Mark Adler 已提交
37
at the time of writing this text file, Visual Studio 2005 (and
M
Mark Adler 已提交
38
  Microsoft Visual C++ 8.0) is on the beta 2 stage.
M
Mark Adler 已提交
39
Using you can get the free 64 bits compiler from Platform SDK,
M
Mark Adler 已提交
40 41 42 43 44 45
  which is NOT a beta, and compile using the Visual studio 2005 IDE
see http://www.winimage.com/misc/sdk64onvs2005/ for instruction

- Uncompress current zlib, including all contrib/* files
- start Visual Studio 2005 from a platform SDK command prompt, using
  the /useenv switch
M
Mark Adler 已提交
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
- Open contrib\vstudio\vc8\zlibvc.sln with Microsoft Visual C++ 2005


Build instructions for Visual Studio 2008 (32 bits or 64 bits)
--------------------------------------------------------------
- Uncompress current zlib, including all contrib/* files
- For 32 bits only: download the crtdll library from
    http://www.winimage.com/zLibDll/crtdll.zip
  Unzip crtdll.zip to extract crtdll.lib on contrib\vstudio\vc9.
- Open contrib\vstudio\vc9\zlibvc.sln with Microsoft Visual C++ 2008.0

Build instructions for Visual Studio 2010 (32 bits or 64 bits)
--------------------------------------------------------------
- Uncompress current zlib, including all contrib/* files
- For 32 bits only: download the crtdll library from
    http://www.winimage.com/zLibDll/crtdll.zip
  Unzip crtdll.zip to extract crtdll.lib on contrib\vstudio\vc10.
- Open contrib\vstudio\vc10\zlibvc.sln with Microsoft Visual C++ 2010.0
M
Mark Adler 已提交
64

M
Mark Adler 已提交
65

M
Mark Adler 已提交
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
Important
---------
- To use zlibwapi.dll in your application, you must define the
  macro ZLIB_WINAPI when compiling your application's source files.


Additional notes
----------------
- This DLL, named zlibwapi.dll, is compatible to the old zlib.dll built
  by Gilles Vollant from the zlib 1.1.x sources, and distributed at
    http://www.winimage.com/zLibDll
  It uses the WINAPI calling convention for the exported functions, and
  includes the minizip functionality. If your application needs that
  particular build of zlib.dll, you can rename zlibwapi.dll to zlib.dll.

- The new DLL was renamed because there exist several incompatible
  versions of zlib.dll on the Internet.

- There is also an official DLL build of zlib, named zlib1.dll. This one
  is exporting the functions using the CDECL convention. See the file
  win32\DLL_FAQ.txt found in this zlib distribution.

- There used to be a ZLIB_DLL macro in zlib 1.1.x, but now this symbol
  has a slightly different effect. To avoid compatibility problems, do
  not define it here.
M
Mark Adler 已提交
91 92 93 94


Gilles Vollant
info@winimage.com