Opened 5 years ago

#13164 new Bugs

Unable to build Boost.Iostreams with pre-built zlib on Windows

Reported by: listhex@… Owned by: Jonathan Turkanis
Milestone: Boost 1.64.0 Component: iostreams
Version: Boost 1.64.0 Severity: Problem
Keywords: iostreams build zlib windows msvc Cc:

Description

I want zlib to be statically linked to the iostreams library

Command line approach:

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

After that I get : unresolved external symbol "int const boost::iostreams::zlib::best_speed" (?best_speed@zlib@iostreams@boost@@3HB)

unresolved external symbol "int const boost::iostreams::zlib::best_compression" (?best_compression@zlib@iostreams@boost@@3HB)

...

The same situation if configure 'using zlib' in user-config.jam:

using zlib : : <include>e:/zlib/include <search>e:/ b/lib <name>zlib : <toolset>msvc ;

and command: b2 --with-iostreams link=static -sNO_ZLIB=0 -sNO_COMPRESSION=0 --debug-configuration

Change History (0)

Note: See TracTickets for help on using tickets.