I compiled the zlib in the following ways (OS: windows 10 + msys)
1. By the official guide, under the code directory,
msys:>./configure
msys:>make -f win32/Makefile.gcc
2. By contrib/vstudio/vc14, open the *.sln by vs2015, this solution project was configured by others
Note that error occur "无法生成SAFESEH映像...", search the solution via internet.
3. By CMake
(a) generate MinGW Makefile, run following
cmd:>mingw32-make
(b) generate MSYS Makefile, run following
msys:>make
(c) generate project for VS2015
This will be a little bit differetn from the one in Contrib directory.
---------------
Both the static and dynamic lib will be generated, but with different suffix.
Yet I didn't test the library. Mark here just for memo.
Be aware that after make process, the important code/zconf.h will be copied to the built folder.