How do I enable support for the new C++ standard on the Eclipse CDT indexer in Juno/Kepler/Luna?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Note that this question (and answer) only deals with the Eclipse indexer which is used to highlight errors before compilation takes place. The C++ compiler settings are not changed! (Thus, compilation could still fail because of missing C++11 settings, but have a look at the “Related” section)
To change the Eclipse indexer settings go to
Project properties->C/C++ General->Preprocessor Include Paths, Macros etc.-> tabProviders->CDT GCC Built-in Compiler Settingsand append
-std=c++0x(or-std=c++11) toCommand to get compiler specs:Afterwards it should look something like:
Sources
Related
Update
Successfully tested with Eclipse