May 032015

I had a problem this weekend where the following snippet would compile within Eclipse, however the IDE would still complain with things like “Symbol ‘array’ could not be resolved”:

There were lots of people who were able to fix this problem by simply adding the appropriate paths, but since it compiles in my case this wasn’t the solution. Anyway, some genius on Stackoverflow figured it out:

Add the symbol with name “__cplusplus” (which in this case is apparently an override):


with the following value:


Now use “Run C/C++ Code Analysis and the red underlining from the unresolved imports goes away:

There is still that red on the left hand side which is just highlighting of the scope which bothers me. This can be removed by right clicking on the red portion, going to preferences, text editors, and removing the “Show range indicator.” check mark:

Finally something nice looking:

Note that for this example I still needed to ensure I was using the C++11 Language Standard:

  One Response to “Unresolved symbols and C++11 in Eclipse Kepler on Ubuntu 14.04”

  1. […] If you are banging your head against the wall because Eclipse Neon is refusing to resolve C++11 functions in Neon you’ve come to the right place. This is the combined effort of multiple Stackoverflow posts and previous experiences, for Eclipse Kepler, I made a post for the same problem. […]

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">