To build zlib on windows I did the following:
- Opened up a windows cmd prompt and ran vsvars32.bat from C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools (You may need to change this depending on which version of Visual Studio you may have)
- Ran nmake -f win32/Makefile.msc. At this point I ran into a LNK2001 error with _inflate_fast being unresolved
- Editted Makefile.msc to add the inffast.obj to the OBJS target per the hint given at here Chinese instructions to build zlib on Windows
- Reran nmake -f win32/Makefile.msc. This time it worked.
That worked perfectly – thanks for that. It’s been a while since I’ve worked with makefiles!!