Eclipse支持 C++ 11
2016-05-19 15:35
375 查看
设置Eclipse使用C++0x标准
具体步骤
1. 右键项目 -> properties -> C/C++ Build -> Settings -> GCC C++ Compiler -> Miscellaneous
添加 ”-std=c++0x" ,不要引号 ,然后各种apply 和OK
2. 右键项目 -> properties -> C/C++ General -> Preprocessor Include Paths,Macros, etc. -> Providers
勾选
CDT GCC Built in Compiler Settings MinGW ,因为我用的是MinGW
取消 下面的Use gloabal provider shared between projects
同样在下面的Command to get Compiler spes 的值的后面加上“std=c++0x” 不要引号
然后apply and OK
3. 返回项目workspace ,选择Project菜单 -> C/C++ index -> Re-resolve unresolved includes
现在你的Eclipse支持c++11标准了,当然错误也没了。
具体步骤
1. 右键项目 -> properties -> C/C++ Build -> Settings -> GCC C++ Compiler -> Miscellaneous
添加 ”-std=c++0x" ,不要引号 ,然后各种apply 和OK
2. 右键项目 -> properties -> C/C++ General -> Preprocessor Include Paths,Macros, etc. -> Providers
勾选
CDT GCC Built in Compiler Settings MinGW ,因为我用的是MinGW
取消 下面的Use gloabal provider shared between projects
同样在下面的Command to get Compiler spes 的值的后面加上“std=c++0x” 不要引号
然后apply and OK
3. 返回项目workspace ,选择Project菜单 -> C/C++ index -> Re-resolve unresolved includes
现在你的Eclipse支持c++11标准了,当然错误也没了。
相关文章推荐
- C语言运算符优先级和口诀
- C语言:变量定义
- 【C++专题】static_cast, dynamic_cast, const_cast探讨
- C++中常见类型转换
- 1008. 数组元素循环右移问题 (20)
- 【C++】:关于C++的这些概念你知道吗?
- C++三大函数(The Big Three)
- C++学习笔记(四)
- C++ 栈 与 堆 【GeekBand 第二周】
- C语言中打开文件读取,写入的操作
- 【C++】:C++之函数模板
- C/C++预定义宏
- 由C++的泛型句柄类思考OpenCV的Ptr模板类
- c++ ADO连接ACESS 2007 数据库
- (未完成)C++ 向基类的构造函数传递参数
- C++继承的构造和析构
- c++ 异常
- C/C++中define的使用
- C语言:数据类型数据常量
- c++常见面试题解析