문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top