如何在C ++中使用boost :: dynamic_bitset

时间:2013-10-10 02:06:32

标签: c++ dynamic boost dev-c++ bitset

我将如何使用boost::dynamic_bitset

我尝试了一个简单的包含声明:#include <boost/dynamic_bitset.hpp>
但是在Dev C ++中我收到一个错误说
"No such file or directory."
我是否需要下载必要的文件并将其包含在项目中? 如果是这样,哪个文件?

感谢您的任何建议。

1 个答案:

答案 0 :(得分:2)

这是因为您的编译器不知道在哪里可以找到boost库。您需要下载它们,解压缩它们,然后设置构建脚本/开发环境以指向它们。

如果编译器不知道Boost库的位置,则无法将代码链接到Boost。

Here is a getting started guide that details this.

And here is the download link.