Skip to main content



      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 03:52 Go to next message
Eclipse UserFriend
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 05:12 Go to previous messageGo to next message
Eclipse UserFriend
http://wiki.eclipse.org/CDT/User/FAQ#CDT_does_not_recognize_C.2B.2B11_features
Re: Enabling C++ 11 features [message #913269 is a reply to message #912833] Sat, 15 September 2012 01:54 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Enabling C++ 11 features [message #915520 is a reply to message #913269] Mon, 17 September 2012 08:58 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Enabling C++ 11 features [message #915627 is a reply to message #915520] Mon, 17 September 2012 12:56 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Enabling C++ 11 features [message #916212 is a reply to message #915520] Tue, 18 September 2012 14:28 Go to previous messageGo to next message
Eclipse UserFriend
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 07:58 Go to previous message
Eclipse UserFriend
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.
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: Wed Apr 30 14:08:56 EDT 2025

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

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

Back to the top