- open the Project Options,
- select the category "C++ Compiler" under "Build",
- add "-std=c++0x" to the Additional Options of the Command Line. If you want to keep the GNU extensions, then you should add "-std=gnu++0x" instead.
This adds support for the latest C++ standard when invoking the g++ compiler. To add support for C++0x / C++11 in the IDE, you need to:
- open the Options in the Tool menu,
- select the C/C++ icon
- select the tab "Code Assistance"
- select the sub-tab "C++"
- add "__GXX_EXPERIMENTAL_CXX0X__"
Be aware that no compiler/IDE has complete support for C++0x / C++11 yet.
For a list of new features in C++11, you can read this very readable document of the C++ inventor Bjarne Stroustrup: C++11 FAQ.
Nenhum comentário:
Postar um comentário