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 6764043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:32:52+00:00 2026-05-26T14:32:52+00:00

EDIT : It seems BCP does what I want: Building a subset of boost

  • 0

EDIT: It seems BCP does what I want: Building a subset of boost in windows

I’m attempting to distribute a Visual Studio 2010 project containing my C++ source. I’ve configured my VS solution to include the boost libraries relative to my solution directory (Using $(SolutionDir)).

Obviously Boost contains many headers that I don’t need and they obviously increase the archive size that I want to distribute.

Here are the headers I include in my code. Is there any way to determine which .hpp files in the $BOOST_ROOT/boost directory I need?

#include <boost/lexical_cast.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/filesystem.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/path.hpp>
#include <boost/thread/condition_variable.hpp>
#include <boost/thread/mutex.hpp>

I have compiled Boost, to access the filesystem libraries, and the $BOOST_ROOT/stage/lib directory contains many files that were compiled when I built Boost. Do I need all these .lib files? Are they safe to delete? Or do they depend on each other?

Ideally, I would only keep the header files that I include, and the .lib files needed by icl, but I’m not sure how to make that happen.

EDIT: This is for a school assignment. The code will be run and graded on the same machine that was used to write the assignment. They won’t compile Boost/install Boost, so I’m including the relevant libs.

Any help is appreciated and I will try to update this question as best as I can if you comment for questions.

Thank you!

  • 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-26T14:32:53+00:00Added an answer on May 26, 2026 at 2:32 pm

    Just use bcp to copy the parts of Boost that you actually use.

    However, if you’re trying to distribute a project along with your source, you generally want the user to be able to compile Boost for themselves. So you probably shouldn’t be distributing Boost with your application.

    If you were using header-only libraries, that wouldn’t be a problem. But since you’re using compiled parts of Boost, the user should have the ability to compile those for themselves. Just in case they have an install of Boost lying around, like a lot of people do.

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

Sidebar

Related Questions

Edit: [Solved] : It seems that the getTableCellRendererComponent of the CustomTableCellRenderer is called every
[edit] So it seems my code works fine, another piece of code + tiredness
Which algorithms or data structures are used in auto-suggest features? It seems that edit-distance
It seems it allows you to edit the content of an element, but what
EDIT : I completely re-wrote the question since it seems like I was not
[EDIT] Based on feedback yes, VS2010 seems to support SL4 Library TDD despite a
This seems like such a simple question. I have several Edit boxes on my
Whenever I edit files on emacs, it seems a temporary file is created with
PLEASE SEE THE EDIT BELOW, THE REPORT SEEMS TO USE CACHED DATA? I cant
EDIT - there are no blank lines. EDIT 2 - my bad, it seems

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.