1

How would I go about using boost::dynamic_bitset?

I've tried a simple include statement: #include <boost/dynamic_bitset.hpp>,
but in Dev C++ I get an error saying
"No such file or directory."
Do I need to download the necessary files and include them in the project?
If so, which files?

Thanks for any suggestions.

4
  • 1
    Yes, you do need to download the necessary headers, and libraries, you will probably need to build them. Also, just a suggestion, last I heard Dev C++ was abandon, and probably does not implement C++11, which boost uses. I would suggest getting an updated I.D.E if you want to use boost. Commented Oct 10, 2013 at 2:11
  • do you have the boost library installed? Commented Oct 10, 2013 at 2:11
  • No I don't have the library installed. I'd rather just include the necessary headers in my project, if possible, rather than download the whole library. Unfortunately, I'm not sure how to do this. Commented Oct 10, 2013 at 2:19
  • Dev C++ can be configured to use C++ 11, but I may update my ide anyway. Commented Oct 10, 2013 at 2:21

1 Answer 1

3

That is because your compiler does not know where to find the boost libraries. You need to download them, extract them, and then setup your build script/development environment to point to them.

If the compiler doesn't know where the Boost libraries are it wont be able to link your code to Boost.

Here is a getting started guide that details this.

And here is the download link.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.