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: Vit.link420@… 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:

  1. bjam toolset=msvc variant=debug,release link=static runtime-link=static
  2. bjam toolset=msvc link=static threading=multi release stage bjam toolset=msvc link=static threading=multi debug stage
  3. 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 anonymous, 8 years ago

The same goes for libraries:

  1. libboost_zlib-vc120-mt-sgd-1_57.lib
  2. libboost_zlib-vc120-mt-1_57.lib
  3. libboost_zlib-vc120-mt-s-1_57.lib
  4. libboost_zlib-vc120-sgd-1_57.lib
  5. libboost_zlib-vc120-s-1_57.lib

in reply to:  description comment:2 by Steven Watanabe, 8 years ago

Replying to Vit.link420@…:

  1. like this: http://stackoverflow.com/questions/7282645/how-to-build-boost-iostreams-with-gzip-and-bzip2-support-on-windows

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.

Note: See TracTickets for help on using tickets.