ndk的r9b编译代码,发现
error: format not a string literal and no format arguments [-Werror=format-security]
参考 http://www.aiseminar.cn/bbs/home.php?mod=space&uid=3&do=blog&id=2733
说是因为ndk编译脚本:
在android-ndk-r9/build/core/default-build-commands.mk中
不过俺不会改啊。
参考 http://blog.youkuaiyun.com/sgwhp/article/details/9663267
在 在Application.mk里面添加下面代码
APP_CPPFLAGS += -Wno-error=format-security
加入之后确实ok了。编译通过了。