android jni 出现format not a string literal and no format arguments [-Werror=format-security]问题
来源:互联网 发布:电视机网络顶盒 编辑:程序博客网 时间:2024/04/30 01:55
使用eclipse, 如果编译jni过程出现如下错误:
error: format not a string literal and no format arguments [-Werror=format-security]
解决方法:
这是由于android-ndk-r10e与eclipse的编译环境不够兼容,才出现的错误。
在你的ndk目录下修改build/core/default-build-commands.mk
TARGET_FORMAT_STRING_CFLAGS := -Wformat -Werror=format-security
为
TARGET_FORMAT_STRING_CFLAGS := -Wformat #-Werror=format-security
也就是把后面部分注释掉
也就是在编译的过程中不让这个报错而已。
0 0
- android jni 出现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]
- error: format not a string literal and no format arguments [-Werror=format-security];
- format not a string literal and no format arguments [-Werror=format-security]
- format not a string literal and no format arguments [-Werror=format-security]
- Android ndk报错error: 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]
- Android ndk报错error: 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]
- Android ndk报错error: 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]
- Android ndk报错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
- error: format not a string literal and no format arguments
- format not a string literal and no format arguments
- keras学习笔记4——部分连接非共享权重层
- c/c++时间函数
- iOS开发之调用系统应用
- MFC 静态文本框控件
- java 获取后台返回json 并js循环利用
- android jni 出现format not a string literal and no format arguments [-Werror=format-security]问题
- C#使用sharppcap实现网络抓包
- 安装ubuntu分区建议
- wampserver 最新版本 mysql修改数据库密码
- android 打包签名
- java学习之编译时类型和运行时类型
- “/dev/kvm not found ”error on windows in android studio
- 关于地产信息化“大佬”们说了什么?看完这些就够了
- 新的开始!