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://www.craighenderson.co.uk

http://www.siteupdatenotification.com