[英]Cannot include header from boost library
I have a problem using - including boost library. 我在使用时遇到问题-包括Boost库。
#include <boost/dynamic_bitset.hpp>
And I'm getting error: boost/dynamic_bitset.hpp: No such file or directory 我得到了错误:boost / dynamic_bitset.hpp:没有这样的文件或目录
I have a boost folder inside where my project is... How to fix it ? 我里面有我的地方项目升压文件夹... 如何解决? Thanks
谢谢
If you have the boost
folder inside your project, you may just need to tell the compiler to look into that folder for header files. 如果项目中有
boost
文件夹,则可能只需要告诉编译器在该文件夹中查找头文件即可。
With gcc/g++ this can be done with the -I</path/to/headers>
option (without angular parentheses). 使用gcc / g ++,可以使用
-I</path/to/headers>
选项(不带尖括号)完成此操作。
Other compilers work the same way with possibly different flags than -I
. 其他编译器以与
-I
不同的标志进行相同的工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.