This is continuation of previous thread in my quest for getting something to read the zipped folders I have but since the methodology is different I decided to start a new thread.
I installed boost and ran a couple of example programs but this one which could have saved my day is not working:
The errors are:Code:#include <fstream> #include <iostream> #include <boost/iostreams/filtering_streambuf.hpp> #include <boost/iostreams/copy.hpp> #include <boost/iostreams/filter/gzip.hpp> int main() { using namespace std; ifstream file("hello.gz", ios_base::in | ios_base::binary); filtering_streambuf<input> in; in.push(gzip_decompressor()); in.push(file); boost::iostreams::copy(in, cout); }
I just copied this code from boost website. Also, it does not give error with the headers as unrecognized headers at all.Code:1>c:\: error C2065: 'filtering_streambuf' : undeclared identifier 1>c:\: error C2065: 'input' : undeclared identifier 1>c:\: error C2065: 'in' : undeclared identifier 1>c:\: error C2065: 'in' : undeclared identifier 1>c:\: error C2228: left of '.push' must have class/struct/union
So, where is this thing going wrong?




Reply With Quote