Error format not a string literal and no format arguments解决方案
来源:互联网 发布:java date 格式化输出 编辑:程序博客网 时间:2024/06/07 00:53
场景: 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
可以解决编译出错问题, 如有更好方案, 请不吝赐教.
0 0
- error: format not a string literal and no format arguments
- 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 [-Werror=format-security]
- :error: format not a string literal and no format arguments [-Werror=format-security]
- error: format not a string literal and no format arguments [-Werror=format-security];
- format not a string literal and no format arguments
- format not a string literal and no format arguments
- format not a string literal and no format arguments
- format not a string literal and no format arguments
- 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解决方案
- HTML学习--基础篇+
- 调用百度地图实现定位功能
- Android 高通代码预制apk可卸载,恢复出厂设置apk可恢复 Android M 6.0
- SQL指令扫盲
- Another way to generate a prime table
- Error format not a string literal and no format arguments解决方案
- mysql 修复损坏表格方法
- leetcode_423. Reconstruct Original Digits from English ASCII码转换成字符,无序的英文字符对应的数字
- 主成份分析(PCA)详解
- JVM调优总结:一些概念 (1)
- Android UsageStatsService:要点解析
- LeetCode 200. Number of Islands
- Java JDK 开发环境的配置
- Scikit-Learn 随机森林分类器的使用