首页 > 其他 > 详细

format not a string literal and no format arguments

时间:2016-12-14 18:31:34      阅读:118      评论:0      收藏:0      [点我收藏+]

今天cocos2d-x打包 android的时候报错:format not a string literal and no format arguments

报错点是:__String::createWithFormat(s_szFuWenEffect2[GetType()])->getCString()

代码vs2015编译是通过的,没任何问题。

修改方法:__String::createWithFormat("%s", s_szFuWenEffect2[GetType()])->getCString()

 

format not a string literal and no format arguments

原文:http://www.cnblogs.com/qianwang/p/6180335.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!