今天使用cocos2dx的native_build.sh
编译出错:
CCCommon.cpp:44:72: error: format not a string literal and no format arguments [-Werror=format-security]
解决办法:
jni/application.mk
APP_CFLAGS += -Wno-error=format-security
编译出错:
CCCommon.cpp:44:72: error: format not a string literal and no format arguments [-Werror=format-security]
解决办法:
jni/application.mk
APP_CFLAGS += -Wno-error=format-security
本文解决了在使用cocos2dx进行编译时遇到的CCCommon.cpp文件中的format-not-a-string-literal错误,并提供了具体的修改配置application.mk中APP_CFLAGS的方法。
2701

被折叠的 条评论
为什么被折叠?



