| Summary: | c++0x mode autodetection. | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | German <germandiago> |
| Component: | cdt-build | Assignee: | cdt-build-inbox <cdt-build-inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | Andrew Gvozdev <angvoz.dev> |
| Severity: | minor | ||
| Priority: | P3 | CC: | cdtdoug, hering.cheng, notifications+eclipse.org |
| Version: | 8.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
German
Is there any plan on making this happen soon? I am using CDT 8.1.0.201205261005 in Eclipse Version: 4.2.0 Build id: I20120503-1800 and still have to manually add the macro in "Project -> Properties -> C/C++ General -> Preprocessor Include Paths, Macros etc. -> CDT User Setting Entries", despite having specified "-std=c++11" in "Project -> Properties -> C/C++ Settings -> GCC C++ Compiler -> Miscellaneous". I am using g++ 4.7.0. Am I missing something? If you use language settings providers (as evidenced by reference to "Preprocessor Include Paths, Macros etc.") you can add the flag to built-in specs detector. On that property page select [Providers] tab and "GCC Builtin Compiler Settings" (should be enabled in your project), then use link "Workspace Settings"->Discovery tab, and add "-std=c++11" to the list of options. Or you can go directly to Preferences->C/C++->Build->Settings->Discovery. That will supply c++11 mode for all projects in workspace using the provider. Thank you, Andrew. This is an awesome hidden jewel. Now I understand the new CDT better. *** This bug has been marked as a duplicate of bug 404913 *** |