I\'ve been trying to compile an application which utilizes zlib compression in VC++ 2010.
I get the
error LNK2019: unresolved external symbol _infla
in my case, install zlib-vc140-static-64
(v1.2.11) or zlib_native
(v1.2.11) using NuGet within vs2017.
Did you verify that your zlib function prototypes are in an extern "C"
block? If not, then the linker will be looking for functions with C++-mangled names, while zlib.lib will contain the unmangled C names.