`

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

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics