您好,欢迎访问一九零五行业门户网

vs2013编译zlib 1.2.8

原标题为【how to compile zlib 1.2.8 (winapi / wapi / stdcall version)】 来源于【http://www.tannerhelland.com/5076/compile-zlib-winapi-wapi-stdcall/】 摘录部分内容如下 【 compile zlib yourself: extract the entire zlib file and navigate to t
原标题为【how to compile zlib 1.2.8 (winapi / wapi / stdcall version)】
来源于【http://www.tannerhelland.com/5076/compile-zlib-winapi-wapi-stdcall/】
摘录部分内容如下
【
compile zlib yourself:
extract the entire zlib file and navigate to the /contrib/masmx86 folder. open the “bld_ml32.bat” file in a text editor.add the “/safeseh” switch to both lines in that file (e.g. “ml /safeseh /coff /zi /c /flmatch686.lst match686.asm”). then save and exit.navigate to the /contrib/vstudio/vc11/ folder. open the zlibvc.sln file in your newly installed visual studio 2012 express.in the solution explorer (top-right by default), right-click “zlibstat” then select “properties” at the bottom.go to configuration properties -> c/c++ -> preprocessor, and in the preprocessor definitions line remove “zlib_winapi;” (don’t forget to remove the trailing semicolon).now, we need to fix a recently introduced problem that relies on win8 functionality. in the solution explorer, navigate to zlibvc -> iowin32.c. double-click to open the file.find the line of text that reads “#if winapi_family_partition(winapi_partition_app)”. change this line to “#if winapi_family_one_partition(winapi_family_desktop_app, winapi_partition_app)”. (thanks to this link for this fix.)zlib uses a version number declaration that can cause the build process to fail. to fix this, go back to the solution explorer, then navigate to zlibvc -> zlibvc.def. double-click to open.change the line that reads “version 1.2.8″ to read “version 1.28″.finally, go to the build -> configuration manager menu and change the active solution configuration to “release”.exit that window and press f7 (or click the build -> build solution menu). the project should successfully build.you can find your newly compiled zlibwapi.dll file in the /contrib/vstudio/vc11/x86/zlibdllrelease/ folder.】严格按照以上步骤可以编译成功,别轻视第9步
其它类似信息

推荐信息