使用eclipse编译含有C++11特性的代码
来源:互联网 发布:淘宝女装店铺头像 编辑:程序博客网 时间:2024/05/21 11:30
up vote 95down vote accepted
I foundthis 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 everythingOnce 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 at the end . ... instead of GCC C++ Compiler I have also Cygwin compilerC/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编译含有C++11特性的代码,总是出错。最后在stackoverflow找到了解决方法。
1. 右击项目,选择Properties。
2. C/C++ Build --> Settings --> Tool Settings --> GCC C++ Compiler --> Miscellanous。在右边的Other Flags中把 "-std=c++0x" 引号中的内容放到已有内容的后面。
2.C/C++ General -> Paths and Symbols -> Symbols -> GNU C++。点击Add,name栏复制__GXX_EXPERIMENTAL_CXX0X__,value为空。
3. OK。
原帖地址:http://stackoverflow.com/questions/9131763/eclipse-cdt-c11-c0x-support
0 0
- 使用eclipse编译含有C++11特性的代码
- 使用eclipse编译含有C++11特性的代码
- 使用eclipse编译含有C++11特性的代码
- 使用Eclipse 编译含有多个main函数的项目
- 编译使用了C++11特性的代码
- 07 eclipse C/ C++编译含有多个main函数的项目
- Linux下使用Eclipse编译C/C++代码时遇到问题的说明
- ubuntu 上编译含有<math.h>的C源程序
- 使用eclipse编译jni代码遇到的问题记录
- 配置 Eclipse 编译C/C++代码
- eclipse使用maven生成含有依赖的jar
- 在caffe中使用C++ 11特性的编译问题
- 使用MPLAB编译C程序,查看生成的汇编代码
- eclipse luna使用NDK9编译c/c++
- 在Eclipse CDT中编译含有多个main函数的项目
- 如何在Eclipse CDT中编译含有多个main函数的项目
- 如何在Eclipse CDT中编译含有多个main函数的项目
- 在Eclipse CDT中编译含有多个main函数的项目
- Hash算法简介
- Linux设备模型
- C++之求有向无环图的最长路径(拓扑排序+动态规划)
- sybase数据表的导出与导入
- umask
- 使用eclipse编译含有C++11特性的代码
- OpenCV中的Mat阵列操作
- 流行移动应用自动化测试开源框架/工具之优劣势比较
- jquery 选择器 之 nth-child
- 周报(第七周)
- csu(背包的变形题)
- android系统移植之iMX53按键驱动篇
- CSDN第一篇
- DM642图像处理程序的主要结构