当我尝试在 xCode 中使用 boost 库时,我不断收到错误消息。 我已经像教程说的那样链接了标题和链接库,但我仍然遇到错误
> #include <iostream>
> #include <string> // std::string
> #include <sstream> // std::stringstream
> #include <initializer_list>
> #include <vector>
> #include <boost/type_index.hpp>
> using std::cout;
> using std::endl;
在 boost 索引处,当我尝试构建时,我的编译器说“找不到‘boost/type_index.hpp’文件”..
我该如何解决这个问题?
最佳答案
在您的 Xcode 项目build设置中,您必须确保在 header 搜索路径中找到/选择它。 (例如/usr/local/boost_1_60_0/include/
)
关于c++ - 不能在 xCode 中使用 boost,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49394758/