Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Enabling C++11 features(Unsuccessful tries of __GXX_EXPERIMENTAL_CXX0X__ and -std=c++0x)
Enabling C++11 features [message #992001] Thu, 20 December 2012 16:31 Go to next message
Halil Can is currently offline Halil CanFriend
Messages: 2
Registered: December 2012
Junior Member
Hi!

I'm trying to enable C++11 on Eclipse but I couldn't manage it so far. When I add -std=c++0x to Preprocessor Include Paths or Discovery Options > Compiler invocation arguements, references are not resolved. When I check array (for std::array) I see
#ifndef __GXX_EXPERIMENTAL_CXX0X__
returns true and code below it is not parsed. So, I get this
Problem description: Symbol 'array' could not be resolved


When I add __GXX_EXPERIMENTAL_CXX0X__ to symbols, then array is parsed. std::array is resolved. However, then my code gets messy. Somehow eclipse cannot parse my code, which was working before I define GXX.

I couldn't find a workaround for this. Thank you!
Re: Enabling C++11 features [message #994109 is a reply to message #992001] Wed, 26 December 2012 12:09 Go to previous messageGo to next message
Klaus km is currently offline Klaus kmFriend
Messages: 142
Registered: November 2011
Senior Member
Hello,

maybe this Guide is useful for you:

http://www.eclipse.org/forums/index.php/mv/msg/282618/

regards,
Klaus


Re: Enabling C++11 features [message #994608 is a reply to message #994109] Thu, 27 December 2012 20:36 Go to previous message
Halil Can is currently offline Halil CanFriend
Messages: 2
Registered: December 2012
Junior Member
It appears to a bug. I've posted it here.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=397027
Previous Topic:Code templates per project
Next Topic:Qt4.8 unresolved inclusion with JUNO on Mac OSX Lion
Goto Forum:
  


Current Time: Tue Apr 23 08:41:45 GMT 2024

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

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

Back to the top