Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse CDT Juno, C++11, GCC 4.8 on OS X Lion and MLion
Eclipse CDT Juno, C++11, GCC 4.8 on OS X Lion and MLion [message #923059] Tue, 25 September 2012 15:13 Go to next message
Andrew Tchieu is currently offline Andrew TchieuFriend
Messages: 1
Registered: September 2012
Junior Member
Hi everyone, i'm having extreme difficulty with getting Eclipse to recognize C++11 syntax for a Makefile project.

I've done what was recommended here, but it doesn't work out for me: http://www.eclipse.org/forums/index.php/mv/msg/373462/909018/#msg_909018

My current configuration is: Eclipse CDT Juno, C++11, GCC 4.8 (from HPC OS X) on OS X Lion, i've installed GCC 4.8 to /usr/local/

Does anyone have any advice on this?
Re: Eclipse CDT Juno, C++11, GCC 4.8 on OS X Lion and MLion [message #1004048 is a reply to message #923059] Tue, 22 January 2013 13:51 Go to previous messageGo to next message
x t is currently offline x tFriend
Messages: 5
Registered: January 2013
Junior Member
scrupulousabstractions.tumblr.com/post/36441490955/eclipse-mingw-builds
I have tested on Windows platform, and it works! C++11 new key words and syntax are correctly recognized and accepted. Hopefully it will help you.

Select the Properties window from the Project menu. Go to the Settings sub-menu under C/C++ Build.
Select [ All configurations ] at the top, and add the option -std=c++11 to the field Other flags Under both GCC C++ Compiler/Miscellaneous and GCC C++ Linker/Miscellaneous.
Under C/C++ General (again in project properties), find the Preprocessor Include Path and go to the Providers Tab. Deselect all except CDT GCC Builtin Compiler Settings. Then untag Share settings entries ... . Add the option -std=c++11 to the text box called Command to get compiler specs.
Go to paths and symbols (again under Under C/C++ General). Selects the Symbols tab, click restore defaults, and then click Apply.


Re: Eclipse CDT Juno, C++11, GCC 4.8 on OS X Lion and MLion [message #1065657 is a reply to message #1004048] Thu, 27 June 2013 02:35 Go to previous messageGo to next message
Wesley Mesquita is currently offline Wesley MesquitaFriend
Messages: 1
Registered: June 2013
Junior Member
@x t

Thanks! I look very much around and the definitive step to solve the parsing problem was to add -std=c++11 to "Command to get compiler specs" @ Project Properties -> C/C++ General -> Pré-Processor Include Paths, Macros, etc -> Providers!

Btw, CDT (Indexer, code completion) is working fine now with clang++3.4, CDT (3.2.0.201306112328) and Eclipse (N20130624-2000).
Re: Eclipse CDT Juno, C++11, GCC 4.8 on OS X Lion and MLion [message #1703487 is a reply to message #1004048] Sat, 01 August 2015 07:44 Go to previous message
Rich Horner is currently offline Rich HornerFriend
Messages: 1
Registered: August 2015
Junior Member
Thank you very much for this. I had the same issue and it worked!
Previous Topic:name column in variables view gone
Next Topic:Boost types cannot be resolved
Goto Forum:
  


Current Time: Tue Apr 23 13:56:21 GMT 2024

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

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

Back to the top