Domanda

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.

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top