Unresolved Inclusion in Eclipse CDT

冷暖自知 提交于 2021-02-10 06:13:57

问题


I have read: unresolved external symbol in eclipse cdt and Unresolved inclusion in Eclipse

I am using Eclipse CDT Neon Version: Neon.3 Release (4.6.3).

Eclipse CDT can compile my code but for some reason, it highlights

#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/split.hpp>

as "Unresolved inclusion".

I have already set the include path for my GCC compiler (in properties->C/C++ Build->Settings->Tool Settings->Includes) to have /opt/boost, which symlinks to /opt/boost_1_63_0. It is accessible too:

$ ll /opt/boost/boost/algorithm/string.hpp
-rw-rw-r--. 1 myuser myuser 1061 Dec 22  2016 /opt/boost/boost/algorithm/string.hpp

I also noticed that #include statements for other headers in /opt also have the same issue.

Any idea how to fix this?

I tried to rebuild the index few times. Same issue.

Thanks.

来源:https://stackoverflow.com/questions/48109126/unresolved-inclusion-in-eclipse-cdt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!