0

I am using the latest release of Eclipse CDT to develop a C++11 static library.

Everything's going fine, except the syntax highlighter doesn't recognise some keywords, namely #include statements.

Has anyone fixed this issue?

ruipacheco
  • 15,025
  • 19
  • 82
  • 138
  • Maybe your color theme doesn't define any specific color for #include? Have a look at http://eclipsecolorthemes.org/ and the associated eclipse plugin (it's great). In addition you might need to do the following to make sure Eclipse understands some of the new C++11 features: http://stackoverflow.com/questions/13635079/enable-c11-in-eclipse-cdt-juno-kepler-indexer – gvd Dec 19 '13 at 23:00
  • It does, they're just underlined. – ruipacheco Dec 19 '13 at 23:08
  • Do they have "bug" symbols in front of them? As in, is the static analyzer causing the "errors"? – gvd Dec 19 '13 at 23:35
  • They're marked as "Unresolved inclusion". The symbol is a question mark. – ruipacheco Dec 20 '13 at 10:54
  • Found a fix here in SO. Can you vote to close my question? – ruipacheco Dec 20 '13 at 12:26
  • 1
    Could you link to the answer? – gvd Dec 20 '13 at 22:58
  • The link is in the header. – ruipacheco Dec 21 '13 at 23:52

0 Answers0