Opened 8 years ago
Last modified 8 years ago
#11156 new Bugs
Missing boost library "libboost_zlib-vc120-mt-gd-1_57.lib"
| Reported by: | Owned by: | Jonathan Turkanis | |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | iostreams |
| Version: | Boost 1.57.0 | Severity: | Problem |
| Keywords: | Cc: |
Description
Hello!
Libraries are built under VC++ 12.0
Proven methods of build:
- bjam toolset=msvc variant=debug,release link=static runtime-link=static
- bjam toolset=msvc link=static threading=multi release stage bjam toolset=msvc link=static threading=multi debug stage
- like this: http://stackoverflow.com/questions/7282645/how-to-build-boost-iostreams-with-gzip-and-bzip2-support-on-windows
The project had been prescribed library paths. No one method helped get the library "libboost_zlib-vc120-mt-gd-1_57.lib" and in the folder "boost/stage/lib" this file does not exist.
Documentation: http://www.boost.org/doc/libs/1_40_0/libs/iostreams/doc/classes/gzip.html
The program, which would like to compile:
#define _SCL_SECURE_NO_WARNINGS
#include <string>
#include <iostream>
#include <fstream>
#include <boost/iostreams/filtering_stream.hpp>
#include <boost/iostreams/filter/zlib.hpp>
#include <boost/iostreams/filter/gzip.hpp>
#include <boost/iostreams/device/file.hpp>
#include <boost/iostreams/copy.hpp>
int main(void) {
boost::iostreams::filtering_ostreambuf out;
out.push(boost::iostreams::gzip_compressor());
out.push(boost::iostreams::file_sink("data.txt", std::ios::binary));
boost::iostreams::copy(boost::iostreams::file_source("data.gz", std::ios::binary), out);
return 0;
}
Change History (2)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
Replying to Vit.link420@…:
libboost_zlib is only built with -SZLIB_SOURCE=.... Is this the method that you used. or did you use ZLIB_INCLUDE/ZLIB_LIBRARY_PATH.
Also, look at the output of b2 [options] --debug-configuration. This should show what's going on with zlib.

The same goes for libraries: