I need boost with ZLib


libboost_iostreams* --> It is may be different with zlib.
May be some other lib file may be different with zlib.


sergey_shandar wrote Jan 29, 2015 at 10:37 PM

Have you tried to use http://www.nuget.org/packages/boost_iostreams_zlib/1.57.0 ? It's a source version of the library. To ship binaries, we need to specify against which version of ZLIB we should build.

danesh110 wrote Jan 31, 2015 at 8:16 AM

My problem with libboost_iostreams.lib was solved.
Is there any similar solution for "libboost_zlib-vc120-mt-gd-1_57.lib"?

sergey_shandar wrote Feb 5, 2015 at 1:28 AM

timotheeguerin wrote Apr 13, 2015 at 9:38 AM

I get the same problem with zlib. I have boost-vc120, zlib and boost_iostreams_zlib packages installed with nuget.
But when compiling i get the following error:
error lnk1104 cannot open file 'libboost_zlib-vc120-mt-1_57.lib'
the current workaround is getting the lib file from the boost sourceforce.

Am i doing anything wrong?


sergey_shandar wrote Apr 14, 2015 at 5:39 PM

Try add either BOOST_ZLIB_NO_LIB or BOOST_IOSTREAM_ZLIB_NO_LIB. http://www.boost.org/doc/libs/1_57_0/libs/config/doc/html/index.html#boost_config.configuring_boost_for_your_platform.user_settable_options

Let me know if it doesn't work.

timotheeguerin wrote Apr 16, 2015 at 9:55 AM


The 2 macros didn't worked but I found that BOOST_IOSTREAMS_NO_LIB is working.
It is probably a bug as the zlib config doesn't check for __BOOST_IOSTREAMS_ZLIB_NO_LIB__(http://www.boost.org/doc/libs/1_57_0/boost/iostreams/detail/config/zlib.hpp) and it's the macro defined in the boost_iostreams_zlib packages.

Thanks for your help anyway.