Boost C++ Libraries: Ticket #13164: Unable to build Boost.Iostreams with pre-built zlib on Windows https://svn.boost.org/trac10/ticket/13164 <p> I want zlib to be statically linked to the iostreams library </p> <p> Command line approach: </p> <p> b2 --with-iostreams link=static -sNO_ZLIB=0 -sNO_COMPRESSION=0 -sZLIB_INCLUDE=e:/zlib/include -sZLIB_LIBRARY_PATH=e:/ b/lib -sZLIB_BINARY=zlib.lib -sZLIB_NAME=zlib --debug-configuration </p> <p> After that I get : unresolved external symbol "int const boost::iostreams::zlib::best_speed" (?best_speed@zlib@iostreams@boost@@3HB) </p> <p> unresolved external symbol "int const boost::iostreams::zlib::best_compression" (?best_compression@zlib@iostreams@boost@@3HB) </p> <p> ... </p> <p> The same situation if configure 'using zlib' in user-config.jam: </p> <p> using zlib : : &lt;include&gt;e:/zlib/include &lt;search&gt;e:/ b/lib &lt;name&gt;zlib : &lt;toolset&gt;msvc ; </p> <p> and command: b2 --with-iostreams link=static -sNO_ZLIB=0 -sNO_COMPRESSION=0 --debug-configuration </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13164 Trac 1.4.3