Cocos2d-x 3.0 编译出错 解决 error: expected ';' at end of member declaration
来源:互联网 发布:p2p软件 编辑:程序博客网 时间:2024/06/08 20:09
最近把项目移植到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
1 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编译出错
- Hibernate 异常: Illegal attempt to associate a collection with two open sessions
- hdu 1019
- libgdx 进度条
- ALSA声卡驱动中的DAPM详解之三:如何定义各种widget
- 初识设计模式
- Cocos2d-x 3.0 编译出错 解决 error: expected ';' at end of member declaration
- Java 日期时间 Date类型,long类型,String类型表现形式的转换
- 函数热身(1)
- RESTful Webservice 和 SOAP Webserivce 对比及区别
- 如何删除数据库中重复的数据
- github推送项目常见错误fatal: remote origin already exists.
- ALSA声卡驱动中的DAPM详解之四:在驱动程序中初始化并注册widget和route
- C# BackgroundWorker 多参数事件
- Erlang除法性能测试