error: format not a string literal and no format arguments
来源:互联网 发布:openwrt nginx服务器 编辑:程序博客网 时间:2024/06/06 08:38
使用android studio, 如果编译jni过程出现如下错误:
error: format not a string literal and no format arguments [-Werror=format-security]
解决方法:
在你的ndk目录下修改build/core/default-build-commands.mk
TARGET_FORMAT_STRING_CFLAGS := -Wformat -Werror=format-security
为
TARGET_FORMAT_STRING_CFLAGS := -Wformat #-Werror=format-security
error: format not a string literal and no format arguments [-Werror=format-security]
解决方法:
在你的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
- 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
- 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解决方案
- Android ndk报错error: 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]
- iOS关于界面跳转的几种方法
- android 自定义ListView的点选样式。
- Android View滑动
- 图片的二进制数据库存储和显示
- Spring MVC 4 学习5: 配置数据源(proxool连接池)及使用例子
- error: format not a string literal and no format arguments
- js操作select option
- Cocos2d-x v3.x 的事件派发机制(消息处理机制CCNotificationCenter)
- window 下修改mysql 数据库的密码
- Java变量以及内存分配
- 内存泄露的解释
- Flex 布局教程:语法篇
- JAVA并发处理经验(四)并行模式与算法6:NIO网络编程
- ueditor