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
Post a Comment