解决NDK编译cpp文件出现的-Werror=format-security
来源:互联网 发布:淘宝网电脑版登录 怎么 编辑:程序博客网 时间:2024/04/25 04:54
char * s ="cainiaobuhuifei"; LOGI(s);
报:error: format not a string literal and no format arguments [-Werror=format-security]
找到的解决方法为:
as of Android NDK revision 9, the followingshould be added to Android.mk as a work-around for the quoted error.
"LOCAL_DISABLE_FORMAT_STRING_CHECKS :=true"
然后就好了,感谢国外大神。
0 0
- NDK编译cpp文件出现的-Werror=format-security
- 解决NDK编译cpp文件出现的-Werror=format-security
- 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]
- 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]
- android jni 出现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]
- Cocos2dx跨平台编译Android错误:format not a string literal and no format arguments [-Werror=format-security]
- Android之ndk编译出现这个错误error: unused variable 'a' [-Werror=unused-variable]
- 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]
- 嵌入式 编译gdb源码时出现“set but not used [-Werror=unused-but-set-variable]”问题的解决办
- 用gcc编译.cpp文件可能出现"undefined reference to `__gxx_personality_v0'"问题的解决
- 比大小
- Greenplum recover failed segment
- 梯度下降和随机梯度下降
- centos使用jmap进行jvm分析报错
- 计算机体系结构》是驱动开发的基础
- 解决NDK编译cpp文件出现的-Werror=format-security
- poj 3414 bfs+记录路劲
- 混合APP开发的套路(二):加载项目中的html
- 【综合知识】系分综合知识总结
- dev c++ opengl的配置
- Java虚拟机的垃圾回收和收集算法
- Vue组件
- jquery.nicescroll.js 滚动条插件 API
- 字典树