Error format not a string literal and no format arguments解决方案
2014-07-08 16:50
453 查看
From: http://www.cnblogs.com/hhuang2012/p/3336911.html
场景: cocos2dx 跨平台开发, 移植Android版本时, 当进行到build_native.sh步骤后
ndk版本: android-ndk-r9
开发环境: win7 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
可以解决编译出错问题, 如有更好方案, 请不吝赐教.
场景: cocos2dx 跨平台开发, 移植Android版本时, 当进行到build_native.sh步骤后
ndk版本: android-ndk-r9
开发环境: win7 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
可以解决编译出错问题, 如有更好方案, 请不吝赐教.
相关文章推荐
- cocos2dx android版本移植时的Error 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解决方案
- 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 解决方案
- cocos2dx android版本移植时的Error format not a string literal and no format arguments解决方案
- cocos2dx 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解决方案
- cocos2dx android版本移植时的Error format not a string literal and no format arguments解决方案
- Error 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解决方案
- error: format not a string literal and no format arguments
- error: format not a string literal and no format arguments [-Werror=format-security]
- 生成apk文件遇到的编译问题error: format not a string literal and no format arguments
- cocos2dx android版本移植时的Error format not a string literal and no format arguments解决方案
- :error: format not a string literal and no format arguments [-Werror=format-security]
- 生成apk文件遇到的编译问题error: format not a string literal and no format arguments