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(How can I use the new C++ 11 functions in eclipse?)
Enabling C++ 11 features [message #912797] Fri, 14 September 2012 07:52 Go to next message
Peter Budai is currently offline Peter BudaiFriend
Messages: 1
Registered: September 2012
Junior Member
I wanted to try out some new C++ 11 features and decided to try out the "chrono" library. I'm currently using eclipse on linux (fedora 17) with g++ 4.7 installed.
I got g++ to compile my code (containing some chrono functions) from the command line, with the option "-std=c++11", but eclipse can't resolve the chrono functions.
I added "-std=c++11" to compiler options under project settings, didn't work.
I'd appreciate any help on how to set this up on eclipse on any platform (even on Visual Studio, doesn't matter).
Re: Enabling C++ 11 features [message #912833 is a reply to message #912797] Fri, 14 September 2012 09:12 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
http://wiki.eclipse.org/CDT/User/FAQ#CDT_does_not_recognize_C.2B.2B11_features

Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: Enabling C++ 11 features [message #913269 is a reply to message #912833] Sat, 15 September 2012 05:54 Go to previous messageGo to next message
Joost Kraaijeveld is currently offline Joost KraaijeveldFriend
Messages: 273
Registered: July 2009
Senior Member
On 14/09/12 11:12, Axel Mueller wrote:
> http://wiki.eclipse.org/CDT/User/FAQ#CDT_does_not_recognize_C.2B.2B11_features

The FAQ states:
"- Source navigation and symbol resolving
You should add the option -std=c++0x to the scanner discovery in Project
Properties->C/C++ Build ->discovery Options in the field "compiler
invocation arguments"."

However there is no such path in the CDT version 8.1.

Andrew Gvozdev was kind enough to points out the correct procedure:

http://www.eclipse.org/forums/index.php/mv/msg/373462/909018/#msg_909018


--
Groeten,

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl


Cheers,

Joost
Re: Enabling C++ 11 features [message #915520 is a reply to message #913269] Mon, 17 September 2012 12:58 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
Quote:
Andrew Gvozdev was kind enough to points out the correct procedure:

http://www.eclipse.org/forums/index.php/mv/msg/373462/909018/#msg_909018

And he updated the FAQ in the wiki Smile


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: Enabling C++ 11 features [message #915627 is a reply to message #915520] Mon, 17 September 2012 16:56 Go to previous messageGo to next message
Joost Kraaijeveld is currently offline Joost KraaijeveldFriend
Messages: 273
Registered: July 2009
Senior Member
On 17-09-12 14:58, Axel Mueller wrote:
> Quote:
>> Andrew Gvozdev was kind enough to points out the correct procedure:
>>
>> http://www.eclipse.org/forums/index.php/mv/msg/373462/909018/#msg_909018
>
> And he updated the FAQ in the wiki :)
Ooops, I missed that one.

--
Groeten,

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl


Cheers,

Joost
Re: Enabling C++ 11 features [message #916212 is a reply to message #915520] Tue, 18 September 2012 18:28 Go to previous messageGo to next message
Klaus km is currently offline Klaus kmFriend
Messages: 142
Registered: November 2011
Senior Member
Quote:
And he updated the FAQ in the wiki Smile


sorry Axel, wrong conclusion Wink

but hope the changes i made will be helpful ...

regards
klaus


Re: Enabling C++ 11 features [message #916742 is a reply to message #916212] Wed, 19 September 2012 11:58 Go to previous message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
Klaus Mr wrote on Tue, 18 September 2012 20:28
Quote:
And he updated the FAQ in the wiki Smile


sorry Axel, wrong conclusion Wink

but hope the changes i made will be helpful ...

regards
klaus

Oh sorry, did not read the history carefully enough.


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Previous Topic:Unknown symbol on file icon
Next Topic:Can't find an option to set post-build step in Juno
Goto Forum:
  


Current Time: Sun Dec 22 05:44:20 GMT 2024

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

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

Back to the top