I'm using Eclipse Mars.2 Release (4.5.2) in Windows. C++11 works well, but for C++14, I can build and run a project using C++14 features without any error, but the IDE always highlights errors in the lines using C++14 features, it makes me difficult to detect real errors.
E.g. When using std::make_unique, it always highlight a bug symbol with notification "Symbol 'make_unique' could not be resolved".
How do I enable C++14 Syntax checking in Eclipse?
My current configuration:
Project property -> C/C++ build -> Setting -> Preprocessor -> Defined symbols:
Project property -> C/C++ build -> Setting -> Miscellaneous-> other flags:
Eclipse CDT uses C/C++ Compiler. Hence before we can start using Eclipse CDT for C/C++ development, we need to have a proper GCC compiler on our system. We can either have 'MinGW' or 'Cygwin' compiler on our machine that will be used by eclipse.
However, it is mostly known for the remarkable support to JAVA – Eclipse has proven itself as a worthwhile IDE for C and C++ as well. It provides you with several useful features for C/C++ development such as auto-completion of code, code refactoring, visual debugging tools, remote system explorer, and many others.
You are going at this the wrong way. To change the compiler and indexer, go to Properties -> C/C++ Build -> Settings. Under GCC C++ Compiler select the Dialect menu. In the Language standard drop down, select C++1y. I don't think the support is full yet however.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With