Eclipse CDT C++11/C++0x support 支持c++11特性例如shared_ptr
2017-01-04 14:47
736 查看
http://stackoverflow.com/questions/9131763/eclipse-cdt-c11-c0x-support
up vote190down voteaccepted | I found this article in the Eclipse forum, just followed those steps and it works for me. I am using Eclipse Indigo 20110615-0604 on Windows with a Cygwin setup. Make a new C++ project Default options for everything Once created, right-click the project and go to "Properties" C/C++ Build -> Settings -> Tool Settings -> GCC C++ Compiler -> Miscellaneous -> Other Flags. Put -std=c++0x(or for newer compiler version -std=c++11at the end . ... instead of GCC C++ Compiler I have also Cygwin compiler C/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. Hit Apply, do whatever it asks you to do, then hit OK. There is a description of this in the Eclipse FAQ now as well: Eclipse FAQ/C++11 Features. Eclipse image setting |
相关文章推荐
- 让eclipse CDT支持C++11
- C++11新特性之智能指针(shared_ptr/unique_ptr/weak_ptr)
- Eclipse - "Eclipse CDT" (Eclipse C++) 安装 与 配置 (支持C++11)
- Ubuntu Eclipse CDT C++11的支持
- (转载)【C++11新特性】 C++11智能指针之shared_ptr
- Eclipse CDT c++支持C++11
- Eclipse CDT对C++11的支持
- 【C++11新特性】 C++11智能指针之shared_ptr
- Eclipse开发linux c/cpp---支持c++11特性
- 解决std::addressof找不到及eclipse lunna+cdt 8.6.0 支持 c++11的设置
- 【C++11新特性】 C++11智能指针之shared_ptr
- Ubuntu解决eclipse CDT 不能识别C++11 shared_ptr 等特性
- Ubuntu解决eclipse CDT 不能识别C++11新特性问题
- 【C++11新特性】 C++11智能指针之shared_ptr
- C++11新特性之智能指针(shared_ptr/unique_ptr/weak_ptr)
- C++11新特性之智能指针(shared_ptr/unique_ptr/weak_ptr)
- Eclipse CDT C++11/C++0x support
- 【C++11新特性】 C++11智能指针之shared_ptr
- 让eclipse支持C++11特性
- Eclipse - "Eclipse CDT" (Eclipse C++) 安装 与 配置 (支持C++11)