3

I usually set the standard in Eclipse by adding -std=c++0x to project properties --> C/C++ Build --> Settings --> Tool Settings --> Miscellaneous . Are there other ways to set this?

  • What doesn't work with the way you do it? – Mat Apr 09 '12 at 12:13
  • @Mat it works, I was just wondering if there other ways to do this. –  Apr 09 '12 at 12:17
  • 1
    @Mat: Last time I checked this won't make eclipse recognize the new c++11 std library additions. – KillianDS Apr 09 '12 at 12:27
  • @KillianDS well you get some functionality, but not all of it. I can use the "auto" keyword.But I believe it depends on the specific compiler. –  Apr 09 '12 at 12:51
  • 2
    You should add `__GXX_EXPERIMENTAL_CXX0X__` to "Paths and Symbols" to recognize c++11 additions. See [http://stackoverflow.com/q/9766936/72178](http://stackoverflow.com/q/9766936/72178). – ks1322 Apr 09 '12 at 12:56
  • @ks1322 that's cool for auto-completion. –  Apr 09 '12 at 13:00
  • Just rephrase this as a Stackoverflow Question+Answer and harvest points. – Hinton May 22 '13 at 09:05

0 Answers0