CCCommon.cpp:44:72: error: format not a string literal and no format arguments

今天使用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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章