cocos2dx android版本移植时的Error format not a string literal and no format arguments解决方案
来源:互联网 发布:打印机端口不存在 编辑:程序博客网 时间:2024/06/14 05:29
[-Werror=format-security] BUG FIX SOLUTION
场景: cocos2dx 跨平台开发, 移植Android版本时, 当进行到build_native.sh步骤后
ndk版本: android-ndk-r9
开发环境: mac os 64bit, Android+Eclipse
BUG:
CCCommon.cpp:54:77: error: format not a string literal and no format arguments [-Werror=format-security]
原因:
android-ndk-r9与Eclipse的版本不兼容问题
方案之一(我搜到的):
在对应项目的proj.android/jni/Application.mk添加一句话
APP_CFLAGS += -Wno-error=format-security
意思就是无视这个error
可以解决编译出错问题, 如有更好方案, 请不吝赐教.
原文地址:http://www.cnblogs.com/hhuang2012/p/3336911.html
0 0
- cocos2dx android版本移植时的Error format not a string literal and no format arguments解决方案
- cocos2dx android版本移植时的Error format not a string literal and no format arguments解决方案
- cocos2dx android版本移植时的Error format not a string literal and no format arguments解决方案
- cocos2dx android版本移植时的Error format not a string literal and no format arguments解决方案
- cocos2dx android版本移植时的Error format not a string literal and no format arguments解决方案
- cocos2dx android版本移植时的Error format not a string literal and no format arguments解决方案
- cocos2dx android版本移植时的Error format not a string literal and no format arguments解决方案
- android 下 Error format not a string literal and no format arguments 解决方案
- error: format not a string literal and no format arguments
- error: format not a string literal and no format arguments
- Error format not a string literal and no format arguments解决方案
- Error format not a string literal and no format arguments解决方案
- Error format not a string literal and no format arguments解决方案
- Error format not a string literal and no format arguments解决方案
- Error format not a string literal and no format arguments解决方案
- Cocos2dx跨平台编译Android错误:format not a string literal and no format arguments [-Werror=format-security]
- Cocos2dx跨平台编译Android错误:format not a string literal and no format arguments [-Werror=format-security]
- Cocos2dx跨平台编译Android错误:format not a string literal and no format arguments [-Werror=format-security]
- 图论500题
- 通讯录的创建以及实现
- dijkstra模板
- 如何用linux中的crontab 执行多条定任务命令
- 搜索广告的整体架构-子模块划分
- cocos2dx android版本移植时的Error format not a string literal and no format arguments解决方案
- YII中CListView列表形式的模板设置,包括pager和sorter的细节
- 安卓---JNI使用
- SSL构建单双向https认证!https部署及注意事项!
- Java REST框架一览
- find命令删除15内文件
- hdu 4932 Miaomiao's Geometry(暴力枚举)
- A. 简单的生活(cin)
- Mysql,SqlServer,Oracle主键自动增长的设置