Cocos2d-x 3.0 编译出错 解决 error: expected '' at end of member declaration
来源:互联网 发布:根据域名查询ip地址 编辑:程序博客网 时间:2024/06/08 02:43
最近把项目移植到cocos2d-x 3.0,在整Android编译环境的时候,出现一大堆的编译出错,都是类似“error: expected ';' at end of member declaration”之类的,看了一些编译错误,都是cocos2d-x库里面的代码出错。
经过分析,怀疑可能是编译环境的问题,因为cocos2d-x使用了很多C++11的新特性,这有可能导致老的编译器出错,看了一下NDK下面的文件以及toolchains里面的内容,windows编译器默认使用4.6,我尝试把4.6改成4.8再次编译不报错了,成功了,把修改的地方分享给大家一下。
在项目->属性下面,修改成下图的样子即可。
即把builder setting改成ndk-build NDK_TOOLCHAIN_VERSION=4.8
0 0
- Cocos2d-x 3.0 TestCpp android编译出错 解决 error: expected ';' at end of member declaration
- Cocos2d-x 3.0 编译出错 解决 error: expected ';' at end of member declaration
- Cocos2d-x 3.0 编译出错 解决 error: expected '' at end of member declaration
- error: expected declaration or statement at end of input
- error: expected declaration or statement at end of input----solved
- error: expected declaration or statement at end
- “ error: expected declaration or statement at end of input/n warning: control reaches end of non-void function”
- expected declaration or statement at end of input
- 错误: expected declaration or statement at end of input
- expected declaration or statement at end of input
- error: At end of source: #67: expected a "}"
- C语言错误:expected declaration or statement at end of input
- C语言错误:expected declaration or statement at end of input 归纳总结
- C语言错误:expected declaration or statement at end of input
- C语言错误:expected declaration or statement at end of input
- cocos2d-x-2.2.5 Eclipse编译报错 error: 'transform' is not a member of 'std' (IOS没有问题)
- 编译警告 warning: extra tokens at end of #undef 解决
- cocos2d-x编译出错
- SSM(spring+mybatis+springmvc)整合 配置文件
- 安卓自定义Dialog的实现
- 1115. Counting Nodes in a BST (30)
- 跨平台开发之React Native初体验
- Android http get请求里中文是乱码的解决(其中一种情况)
- Cocos2d-x 3.0 编译出错 解决 error: expected '' at end of member declaration
- Hibernate的ResultTransformer使用
- iOS清除缓存,实时显示缓存大小
- 在http请求中,get不都是从服务器上down数据下来吗?
- JAVA学习笔记(三)-并发编程 Callable Future CompleableFuture
- 2015 年你在科研上有哪些值得分享的进展和感悟?
- 时间工具类
- Intersection of Two Linked List -JS
- AppDelegate