c++ - Linking zlib in Visual Studio 2012 -


i have c++ program compiled , ran fine on linux trying compile on windows machine in visual studio. main problem i'm facing following error message:

error lnk2019: unresolved external symbol _gzread referenced in function

i have downloaded zlib library , attempted link project, apparently unsuccessfully. i'd appreciate clear instructions on how link project. less assume in instructions, better, i'm relatively new visual studio.

found solution. though i'm working on 64-bit machine, vs compiling in 32-bit mode. used 32-bit version of zlibwapi instead of 64-bit version , worked.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -