<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Any VC++2010 folk,<div><br></div><div>Below is an email about problems with compiling zlib.  Interestingly, nother VS2010 fellow had only the io.h problem.  In any case, if someone can provide some insight here, I would appreciate it.  Thanks.</div><div><br></div><div>Mark</div><div><br><div><br><div>Begin forwarded message:</div><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>From: </b></span><span style="font-family:'Helvetica'; font-size:medium;">Luke Emrose <<a href="mailto:luke.emrose@flyingbark.com.au">luke.emrose@flyingbark.com.au</a>><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>Date: </b></span><span style="font-family:'Helvetica'; font-size:medium;">January 30, 2012 2:29:18 PM PST<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>To: </b></span><span style="font-family:'Helvetica'; font-size:medium;"><a href="mailto:zlib@gzip.org">zlib@gzip.org</a><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>Subject: </b></span><span style="font-family:'Helvetica'; font-size:medium;"><b>zlib will not compile successfully under Windows 7, VC++2010 with Windows SDK7.1 in 64bit - discussion</b><br></span></div><br>Hi there!<div><br></div><div>I am currently working through compiling zlib ( found here: <a href="http://zlib.net/zlib126.zip">http://zlib.net/zlib126.zip</a> ) using the supplied VC10 project files.</div><div><br></div><div>
There are 3 main issues.</div><div><br></div><div>1.) The typical 64bit hackery you have to do with VC++2010 since it refuses to play nicely out of the box unless you install Windows SDK7.1 and choose the Platform Toolset under the Property Pages to be "Windows7.1SDK".</div>
<div>2.) Add the following modification to gzguts.h</div><div><br></div><div>Before:</div><div><br></div><div>#ifdef __TURBOC__</div><div><div>#  include <io.h></div><div>#endif</div></div><div><br></div><div>After:</div>
<div><br></div><div><div>#if defined(__TURBOC__) || (defined(_MSC_VER) && _MSC_VER >= 1600)</div><div>#  include <io.h></div><div>#endif</div></div><div><br></div><div>since otherwise VC10 does not correctly pick up the open, write, close and 64bit seeki functions.</div>
<div><br></div><div>3.) Now I'm up to the stage where the "testzlib" project under the main zlibvc solution complains of "error LNK2001: unresolved external symbol gzflags" which I am currently working on.</div>
<div><br></div><div>4.) Aside from this the dll targets complain of:</div><div><br></div><div><div>1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(C:\Users\luke.emrose\Documents\LukeDev\zlib-1.2.6\contrib\vstudio\vc10\x64\ZlibDllRelease\zlibvc.dll) does not match the Linker's OutputFile property value (C:\Users\luke.emrose\Documents\LukeDev\zlib-1.2.6\contrib\vstudio\vc10\x64\ZlibDllRelease\zlibwapi.dll). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).</div>
<div>1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(992,5): warning MSB8012: TargetName(zlibvc) does not match the Linker's OutputFile property value (zlibwapi). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).</div>
<div>1>     Creating library x64\ZlibDllRelease\zlibwapi.lib and object x64\ZlibDllRelease\zlibwapi.exp</div></div><div><br></div><div><div>2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(C:\Users\luke.emrose\Documents\LukeDev\zlib-1.2.6\contrib\vstudio\vc10\x64\TestZlibDllRelease\testzlibdll.exe) does not match the Linker's OutputFile property value (C:\Users\luke.emrose\Documents\LukeDev\zlib-1.2.6\contrib\vstudio\vc10\x64\TestZlibDllRelease\testzlib.exe). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).</div>
<div>2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(992,5): warning MSB8012: TargetName(testzlibdll) does not match the Linker's OutputFile property value (testzlib). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).</div>
<div>2>  testzlibdll.vcxproj -> C:\Users\luke.emrose\Documents\LukeDev\zlib-1.2.6\contrib\vstudio\vc10\x64\TestZlibDllRelease\testzlibdll.exe</div></div><div><br></div><div>which I am still looking in to.</div><div>
<br></div><div>So I'd like to ask can you help with 3 or 4 if I haven't fixed it already by the time you write back and if this is new information, whether I could compile it for you to add to your website?</div><div>
<br></div><div>regards,</div><div><br></div><div>Luke Emrose,</div><div>Rendering and Lighting Technical Director - Flying Bark Studios, Sydney</div>
</blockquote></div><br></div></body></html>