eclipse c++11支持
2014-03-10 13:23
288 查看
首先提一下背景哈。我需要在eclipse下阅读cocos2dx代码。插件肯定是安装了的。还有的就是安装gcc 4.8
环境:ubuntu12.04 + eclipse Juno + CDT
导入源码之后,很多红色的地方。为此百度+google了很长时间,无解,郁闷许久。
在看c++ 11新特性std::bind和std::function的时候看到一个宏#if __cplusplus >= 201103L
google之后发现如下一句http://www.stroustrup.com/C++11FAQ.html#11:
In C++11 the macro __cplusplus will
be set to a value that differs from (is greater than) the current 199711L.
所以方法就来了,只需如下图设置即可。其中宏LINUX是因为cocos2dx是跨平台的,需要明确告知是LINUX平台下的代码。
环境:ubuntu12.04 + eclipse Juno + CDT
导入源码之后,很多红色的地方。为此百度+google了很长时间,无解,郁闷许久。
在看c++ 11新特性std::bind和std::function的时候看到一个宏#if __cplusplus >= 201103L
google之后发现如下一句http://www.stroustrup.com/C++11FAQ.html#11:
In C++11 the macro __cplusplus will
be set to a value that differs from (is greater than) the current 199711L.
所以方法就来了,只需如下图设置即可。其中宏LINUX是因为cocos2dx是跨平台的,需要明确告知是LINUX平台下的代码。
相关文章推荐
- 解决std::addressof找不到及eclipse lunna+cdt 8.6.0 支持 c++11的设置
- eclipse支持c++11
- eclipse支持C++11
- 关于在ubuntu下eclipse中c++11支持和编译运行c++11报错的解决方法
- ubuntu12.04 eclipse c++对c++11的支持
- Eclipse开发linux c/cpp---支持c++11特性
- jni 简单实践 eclipse支持c++11
- Eclipse CDT对C++11的支持
- 让eclipse CDT支持C++11
- Eclipse CDT c++支持C++11
- eclipse Neon 设置支持C++11
- 让eclipse支持C++11特性
- Eclipse - "Eclipse CDT" (Eclipse C++) 安装 与 配置 (支持C++11)
- Eclipse - "Eclipse CDT" (Eclipse C++) 安装 与 配置 (支持C++11)
- 关于在ubuntu下eclipse中c++11支持和编译运行c++11报错的解决方法
- Ubuntu Eclipse CDT C++11的支持
- eclipse中添加c++11支持
- Eclipse CDT C++11/C++0x support 支持c++11特性例如shared_ptr
- eclipse下安装js插件-spket(支持Ext)
- modelgoon插件,该插件支持在eclipse直接根据java文件生产类图