[Zlib-devel] Fwd: zlib will not compile successfully under Windows 7, VC++2010 with Windows SDK7.1 in 64bit - discussion
Mark Adler
madler at madler.net
Tue Jan 31 00:31:18 EST 2012
Any VC++2010 folk,
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.
Mark
Begin forwarded message:
> From: Luke Emrose <luke.emrose at flyingbark.com.au>
> Date: January 30, 2012 2:29:18 PM PST
> To: zlib at gzip.org
> Subject: zlib will not compile successfully under Windows 7, VC++2010 with Windows SDK7.1 in 64bit - discussion
>
> Hi there!
>
> I am currently working through compiling zlib ( found here: http://zlib.net/zlib126.zip ) using the supplied VC10 project files.
>
> There are 3 main issues.
>
> 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".
> 2.) Add the following modification to gzguts.h
>
> Before:
>
> #ifdef __TURBOC__
> # include <io.h>
> #endif
>
> After:
>
> #if defined(__TURBOC__) || (defined(_MSC_VER) && _MSC_VER >= 1600)
> # include <io.h>
> #endif
>
> since otherwise VC10 does not correctly pick up the open, write, close and 64bit seeki functions.
>
> 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.
>
> 4.) Aside from this the dll targets complain of:
>
> 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).
> 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).
> 1> Creating library x64\ZlibDllRelease\zlibwapi.lib and object x64\ZlibDllRelease\zlibwapi.exp
>
> 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).
> 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).
> 2> testzlibdll.vcxproj -> C:\Users\luke.emrose\Documents\LukeDev\zlib-1.2.6\contrib\vstudio\vc10\x64\TestZlibDllRelease\testzlibdll.exe
>
> which I am still looking in to.
>
> 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?
>
> regards,
>
> Luke Emrose,
> Rendering and Lighting Technical Director - Flying Bark Studios, Sydney
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://madler.net/pipermail/zlib-devel_madler.net/attachments/20120130/b41ae7ae/attachment.html>
More information about the Zlib-devel
mailing list