Boost logo

Boost-Build :

Subject: [Boost-build] Building Zlib and Iostreams
From: Craig Henderson (cdm.henderson_at_[hidden])
Date: 2009-07-11 12:29:05


Hi, I am successfully using MSVC8 with Boost and STLPort but have hit a
problem trying to use Zlib compression in Boost.Iostreams.

 

I have re-built Boost.Iostreams with ZLib 1.2.3 and the following code snip
produces a linker error

LINK : fatal error LNK1104: cannot open file
'libboost_zlib-vc80-mt-gdp-1_39.lib'

 

std::ifstream in(pathname.file_string().c_str(), std::ios_base::in |
std::ios_base::binary);

std::ofstream file((pathname.file_string() + ".z").c_str(),
std::ios_base::in | std::ios_base::binary);

boost::iostreams::filtering_streambuf<boost::iostreams::output> out;

out.push(boost::iostreams::zlib_decompressor());

out.push(file);

boost::iostreams::copy(in, out);

 

I cannot find any reference to building this library. Can someone point me
to the relevant docs, please?

 

Thanks

-- Craig

 

Craig Henderson

 <http://craighenderson.co.uk/> http://www.craighenderson.co.uk

http://www.siteupdatenotification.com

 



Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk