Hi, cocos2dx,v3.0, windows下编译OK,可以在linux下编译为什么会报如下错误呢?求解。
…/…/cocos/deprecated/CCString.h:233
error: use of undeclared identifier ‘vsnprintf’; did you mean ‘vswprintf’?
vsnprintf(buf, CC_MAX_STRING_LENGTH, format, ap);
^~~~~~~~~
vswprintf
头文件已加:
#include <stdio.h>
#include <stdarg.h>