|
Boost Users : |
From: Rainer Thaden (RThaden_at_[hidden])
Date: 2008-03-25 13:28:36
Hi Andreas,
I also got stuck when trying to use zlib in iostreams and found the
documentation not very helpful. The "Getting started on Microsoft
Windows" is a bit "unorganized" and outdated. That was mentioned before
in another thread.
>
> As I understand it I have to rebuild boost.iostreams with zlib support:
> C:\boost\boost_1_34_1\libs\iostreams\build>bjam
> "-sNO_COMPRESSION=0"
> "-sNO_ZLIB=0"
> "-sZLIB_SOURCE=C:\Libs\zlib123"
> "-sZLIB_LIBPATH=C:\Libs\zlib123\dll32"
> "-sZLIB_BINARY=zlibwapi.dll"
>
> I tried this and that but to be honest I don't really know what I'm
> doing and it didn't work.
What worked for me was
C:\boost\boost_1_34_1\libs\iostreams\build>bjam
"-sNO_ZLIB=0"
"-sZLIB_SOURCE=C:\Libs\zlib123"
You have to think about the threading and linking options (look for the
specific keywords).
Then some libs with "lib" prefix (for static linking) and without that
prefix (dynamic linking) should be built as well as the corresponding DLLs.
When you use dynamic linking, make sure to add
BOOST_ALL_DYN_LINK to your defines.
You may also have a look at
http://www.codeproject.com/KB/tips/Building_boost_libraries.aspx
which was helpful for me.
Best regards,
Rainer
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net