Has anyone had any success in using boost_iostreams with bzip and gzip support in windows?
First I tried with the Dev-Cpp devpak from: http://www.digitazero.org/?p=28#BOOST (since I use that IDE to make the windows binaries for my program) but apparently the compression filter capabilities are disabled (linker errors if I make a call to boost::iostreams::gzip_decompressor(), if that link is commented the program builds just fine).
I've already read the building documentation in: http://www.boost.org/libs/iostreams/doc/installation.html#bjam but the builder says that bzip2 and gz support will be disabled. The flags I used were: bjam "-sBZIP2_SOURCE=C:\Dev-Cpp\include" "-sBZIP2_BINARY=C:\Dev-Cpp\bin" "-sBZIP2_LIBPATH=C:\Dev-Cpp\lib"
The same with the gzip flags.
I double checked that the headers (bzlib.h and zlib.h) are in C:\Dev-Cpp\include, also that the binaries (bzip2.dll and zlib1.dll) are in C:\Dev-Cpp\bin but bjam still says: "Building Boost.Iostreams with zlib and gzip support disabled."
Thanks in advance,
You should try BZIP2_INCLUDE instead of BZIP2_SOURCE
At this time, I cannot compile anything bjam breaks for me... so I suppose you're ahead of me! 8-)
Thanks Alexis, that made the trick.
If you wish I could post the steps I followed to successfully compile the module.