Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将如何使用boost::dynamic_bitset?
boost::dynamic_bitset
我尝试了一个简单的包含语句:#include <boost/dynamic_bitset.hpp>, 但是在 Dev C++ 中我收到一条错误消息,说 "No such file or directory." 我需要下载必要的文件并将它们包含在项目中吗? 如果是这样,哪些文件?
#include <boost/dynamic_bitset.hpp>
"No such file or directory."
感谢您的任何建议。
那是因为您的编译器不知道在哪里可以找到 boost 库。您需要下载它们,提取它们,然后设置您的构建脚本/开发环境以指向它们。
如果编译器不知道 Boost 库在哪里,它将无法将您的代码链接到 Boost。
这是详细说明此内容的入门指南。
这是下载链接。