在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
本文介绍了在Mac环境下使用create-multi-platform-projects.py创建项目时遇到的C++11多线程编译问题,并提供了详细的解决方案,包括确保使用正确的NDK版本及如何启用C++11支持。
2033

被折叠的 条评论
为什么被折叠?



