1. Download zlib library
http://zlib.net/zlib-1.2.11.tar.gz
2.
Unzip the file downloaded to the following directory
E:\osg\zlib\zlib-1.2.11
3.
Open with VS2019
E:\osg\zlib\zlib-1.2.11\contrib\vstudio\vc14\zlibvc.sln
file
4. Modify the compilation type
5. Modify "to generate pre-event," the command line
It read:
E:
cd E:\osg\zlib\zlib-1.2.11\contrib\masmx64
bld_ml64.bat
6. Compile