Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Configuring IDE for C++11 development(C++11 syntax markers and other problems encountered when attempting to use Juno with CDT plug-in and MinGW GCC 4.8.1 under layer.)
Configuring IDE for C++11 development [message #1406676] Sun, 10 August 2014 20:48 Go to next message
David Plasil is currently offline David PlasilFriend
Messages: 2
Registered: August 2014
Junior Member
The syntax marker problem is downstream from what it took to get CDT to compile code with C++11 features. Initially CDT wouldn't build C++11 code and threw lots of compiler error messages in the Console view and didn't support content help for C++11 features in the editor. I suspect the syntax marker problem was always there all along but didn't notice it. At any rate, after determining that there was nothing wrong with the GCC tools I believe that I solved the compiler side of the problem at the project level (not workspace wide) by setting Eclipse/CDT project preferences GCC C++ Compiler and GCC C Compiler Miscellaneous settings to include other flags -std=c++11 and -std=gnu11 respectively. At this point I get the error markers (syntax, not compiler) every time I save a .cpp with C++11 features (which impacts both the text editor and the Problems view). Deleting the syntax markers manually out of the Problems view removes the markers from the text editor. My attempts to enable C++11 code completion and code analysis has been both time consuming and frustrating e.g. have tried workarounds for older versions of Eclipse and/or CDT that do not work (e.g. discovery vs. compiler invocation arguments, re-indexing, etc.), have reviewed postings with recent dates that direct me to take actions not supported by the integrated IDE I am using (e.g. specifying project preferences that include 'C/C++ General' then 'Preprocessor Include Paths' then 'Providers' etc.), etc. etc.. Sad Correct Eclipse and CDT terminology aside, I think I need a method to specify use of C++11 features to the code completion and code analysis functions. Long term I am looking for a workspace wide (not a project level) solution for C++11 development. Surprised Surprised
Re: Configuring IDE for C++11 development [message #1411512 is a reply to message #1406676] Sat, 23 August 2014 15:13 Go to previous messageGo to next message
David Plasil is currently offline David PlasilFriend
Messages: 2
Registered: August 2014
Junior Member
Status Update: Note: following has all the helpful links stripped out because I have fewer than 5 messages: Lots of effort since my last post but I still have syntax marker problems and missing editor content help (code completion and code analysis) for C++11 (primary problem) and it turned out that:
1. I cannot compile all C++11 features (new secondary problem but not a showstopper)
2. My existing ADT Eclipse bundle from late 2013 (marked Juno) did not support project properties, C/C++ General, Preprocessor Include Path, Providers Tab, deselection of all except CDT GCC Builtin Compiler Settings etc. etc. etc

Since my last post I have attempted to:
• re-install MinGW4.8.1 IAW <link removed by author>.
• Update to the latest MinGW v4.8.1-4
• Tune use of the MinGW toolchain from Eclipse IAW the useful posting at <link removed by author>.
• Swap out MinGW for MinGW-Build per the useful posting (downloaded from <link removed by author>) to address possible inability of the MinGW distribution to compile C++11 properly (for reportedly supported features). Note: to date swap has failed due to TBD download problems (currently working download issue with the sourceforge mingwbuilds project folks at <link removed by author>).

Confused At this point I have given up working workspace wide (not project level) configuration of the toolchain. Currently only working what may positively impact the primary problem e.g. download MinGW-Build and use it instead of MinGW, download boost library, etc. Comments and clues welcomed.
Re: Configuring IDE for C++11 development [message #1415773 is a reply to message #1411512] Wed, 03 September 2014 15:18 Go to previous messageGo to next message
Michel Lesoinne is currently offline Michel LesoinneFriend
Messages: 2
Registered: September 2014
Junior Member
I am having a very similar problem. Old projects recognize C++11. These were set with older version of Eclipse and CDT.
Now when I import code as new projects, I don't know how to make CDT recognize C++11 anymore. As the above post says, none of the Google results I can find help because the menus for the proposed solutions do not exist anymore. Could someone post an authoritative answer as to how to do it with Eclipse Luna and the latest CDT?
Re: Configuring IDE for C++11 development [message #1416264 is a reply to message #1415773] Thu, 04 September 2014 18:03 Go to previous messageGo to next message
Harald Achitz is currently offline Harald AchitzFriend
Messages: 11
Registered: October 2013
Junior Member
for the indexer

Project / Properties /
C/C++General
Preprocessor Include Paths, Macros etc.
the tap Providers

CDT GCC Build-in Compiler Settings
add -std=c++11 -
to the command to get compiler specs

Re: Configuring IDE for C++11 development [message #1419890 is a reply to message #1411512] Tue, 09 September 2014 08:11 Go to previous messageGo to next message
Pascal Irinel is currently offline Pascal IrinelFriend
Messages: 11
Registered: September 2014
Junior Member
what about gcc 4.9.1 !? you can get it from equation. com / programming tools / fortran

[Updated on: Tue, 09 September 2014 08:12]

Report message to a moderator

Re: Configuring IDE for C++11 development [message #1423914 is a reply to message #1416264] Mon, 15 September 2014 07:04 Go to previous messageGo to next message
Felix T is currently offline Felix TFriend
Messages: 4
Registered: December 2011
Junior Member
It is a bit cumbersome to do that for each and every project...
Can't we set a version for the CDT, or at least for the current workspace?
Re: Configuring IDE for C++11 development [message #1428292 is a reply to message #1423914] Sun, 21 September 2014 15:59 Go to previous message
Harald Achitz is currently offline Harald AchitzFriend
Messages: 11
Registered: October 2013
Junior Member
Window - Preferences - C/C++ - Build - Settings
second tab Discovery

here you can set the defaults
if you set there your c++11 discovery it will be used as default
Previous Topic:Noob question regarding STL debug
Next Topic:cdt debug can't find source files
Goto Forum:
  


Current Time: Sun Oct 06 17:02:04 GMT 2024

Powered by FUDForum. Page generated in 0.03810 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top