Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6469823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:02:18+00:00 2026-05-25T06:02:18+00:00

How do I build boost ‘s iostreams library with gzip and bzip2 support?

  • 0

How do I build boost‘s iostreams library with gzip and bzip2 support?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T06:02:19+00:00Added an answer on May 25, 2026 at 6:02 am

    I am no expert, but this worked for me.

    Option 1 (straight from source)

    1. Download source files for zlib and for bzip2.

    2. Extract the downloads to directories, move directories to somewhere you like. I had to avoid C:\Program Files (x86)\ as I couldn’t get it to work with spaces in the directory name, so I created C:\Sys\ and used that.

    3. Open a command prompt with elevated privileges (run as administrator), go to your boost directory, e.g. C:\Program Files (x86)\boost\boost_1_50_0\ and type b2.exe --with-iostreams -s BZIP2_SOURCE=C:\Sys\bzip2-1.0.6 -s ZLIB_SOURCE=C:\Sys\zlib-1.2.7

    4. Verify that C:\Program Files (x86)\boost\boost_1_50_0\stage\lib contains the wanted files, e.g. libboost_zlib-vc100-*-1_50 and libboost_bzip2-vc100-*-1_50.

    Option 2 (build from source first)

    1. As above, download the source files.

    2. Open a Visual Studio Command Prompt with elevated privileges (run as administrator)

    3. Go to C:\Sys\zlib-1.2.7> and type nmake -f win32\Makefile.msc. This will build zlib.

    4. Go to C:\Sys\bzip2-1.0.6> and type nmake -f makefile.msc. This will build gzip2.

    5. The command for boost now becomes b2.exe --with-iostreams -s BZIP2_BINARY=libbz2 -s BZIP2_INCLUDE=C:/Sys/bzip2-1.0.6 -s BZIP2_LIBPATH=C:/Sys/bzip2-1.0.6 -s ZLIB_BINARY=zlib -s ZLIB_INCLUDE=C:/Sys/zlib-1.2.7 -s ZLIB_LIBPATH=C:/Sys/zlib-1.2.7

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Boost library is full of examples and tests and I would like to build
I'm trying to build TorTunnel on my mac. I've successfully installed the Boost library
I had to build boost library for threading. So I gave the command ./bootstrap.sh
I'm compiling boost with bjam under Windows 7 (64bit-should be irrelevant) D:\development\boost\boost_1_44\libs\iostreams\build>bjam stage ^
I need to build boost program options static library in both PC/Mac. It has
Using boost build, if I can link to a boost python library with this
When I try to build some application with linking boost's library libboost_serialization.so, I have
I was trying to build Boost C++ Libraries for last two hours and stopped
I am using boost build in my project and now i want to use
How do I force a 32-bit build of Boost with GCC? Currently attempting by

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.