2

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.

Hei
  • 1,844
  • 3
  • 21
  • 35
  • Are the header files directly in `/opt/boost`? Or possibly in `/opt/boost/include`? Can you yourself open e.g. `/opt/boost/boost/algorithm/string.hpp`? – Some programmer dude Jan 05 '18 at 07:36
  • yes, ll /opt/boost/boost/algorithm/string.hpp -rw-rw-r--. 1 myuser myuser 1061 Dec 22 2016 /opt/boost/boost/algorithm/string.hpp – Hei Jan 05 '18 at 08:29

0 Answers0