title: Compiling boost with zlib on windows
body: <p>Is there is good tutorial on how to compile boost with zlib on windows. 
  I looked over boost reference, but it's vague and not enough.
  I did download zlib dll and source code and made reference in visual studio. 
  I have link error on </p>
  
  <pre><code>gzip_decompressor();
  </code></pre>
  
  <p>complete code:</p>
  
  <pre><code>using namespace boost::iostreams;
  using namespace std;
  std::ifstream file("hello.gz", std::ios_base::in | std::ios_base::binary);
  filtering_streambuf &lt; input &gt; in;
  in.push(gzip_decompressor());
  in.push(file);
  boost::iostreams::copy(in, std::cout);
  </code></pre>
  
  <p>I am getting this error,</p>
  
  <blockquote>
    <p>Error 11 error LNK2019: unresolved external symbol "_declspec(dllimport) public: __thiscall
    boost::iostreams::detail::gzip_header::~gzip_header(void)"
    (__imp??1gzip_header@detail@iostreams@boost@@QAE@XZ) referenced in
    function "public: __thiscall
    boost::iostreams::basic_gzip_decompressor
    \>::~basic_gzip_decompressor >(void)" (??1?$basic_gzip_decompressor@V?$allocator@D@std@@@iostreams@boost@@QAE@XZ)
    –</p>
  </blockquote>