Ben Chuanlong Du's Blog

And let it direct your passion with reason.

Make Eclipse Support C++11

  1. Make a new C++ project

  2. Default options for everything

  3. Once created, right-click the project and go to "Properties"

  4. C/C++ Build -> Settings -> Tool Settings -> GCC C++ Compiler -> Miscellaneous -> Other Flags. Put -std=c++0x at the end.

  5. C++ General -> Paths and Symbols -> Symbols -> GNU C++. Click "Add..." and paste __GXX_EXPERIMENTAL_CXX0X__ (ensure to append and prepend two underscores) into "Name" and leave "Value" blank.

  6. Hit Apply, do whatever it asks you to do, then hit OK.

Comments