Do you pass the -std=c++0x or the -std=c++11 flags to the compiler (assuming gcc)? Within Eclipse? Or from command line, properly setting the flags? So just in case:
#Eclipse neon cdt code#
It isn't 100% clear how the code compiles. It seems like you have run into the common problem with Codan, see my answer here. As of Mausers claim that it helped them whereas the above approach didn't.
#Eclipse neon cdt full#
If it doesn't on yours, then you might want to give a shot to this: C++11 full support on Eclipse although I am neither sure about the correctness of this approach nor was it necessary to do it on my machine. $"Ĭlean and rebuild both your project and your index ( Project > C/C++ Index > Rebuild) as Eclipse tends to cache error messages and show them even though they are gone after changing the settings. C/C++ Editor (basic functionality, syntax highlighting, code completion etc.). Im currently facing issues while trying to perform an offline installation of the GNUARMEclipse plugin on Eclipse CDT Neon.1. On my machine it looks like this after the change: The Eclipse C/C++ Development Tools (CDT) runs on top of the Eclipse Platform. Then under Window > Preferences > C/C++ > Build > Settings on the Discovery tab chose CDT GCC Built-in Compiler Settings and add the -std=c++11 flag to Command to get compiler specs. I double-checked today (Mar 15, 2014): in Eclipse Kepler (Build id 20130614-0229) it is sufficient toĪdd under Project > Properties > C/C++ Build > Settings then on the Tool Settings tab GCC C++ Compiler > Miscellaneous the -std=c++11 flag, UPDATE: It's been a long time since I posted the original answer and it has become outdated.