首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

cocos2d-x 3.0版本,eclipse编译时,识别不了std:thread

2013-11-09 
cocos2d-x 3.0版本,eclipse编译时,识别不了std::thread在mac环境下,使用create-multi-platform-projects.p

cocos2d-x 3.0版本,eclipse编译时,识别不了std::thread

在mac环境下,使用create-multi-platform-projects.py创建项目;按照README.md配置好android环境,编译时,CCTextureCache.h里面的std::thread,std::mutex等识别不了,其他string能识别呀。报:Multiple markers at this line
- 'thread' in namespace 'std' does not name a?
type
- Type 'std::thread' could not be resolved
错误。
这个有谁知道怎么回事不?

==============================================================================

1.必须使用ndk-r8e or ndk-r9或以上

2.开启c++11的支持,添加-std=c++11?in?Application.mk

热点排行