我在cocos2dx 3.2中使用std::to_string(111) 并没有任何问题,今天我想把项目试试从3.2 升级到3.4版本,但是发现问题.
error: ‘to_string’ is not a member of ‘std’
但是这个问题我在3.2版本并未出现,请问这个是什么情况?
我使用HelloWorld中加入一行代码
std::string a = std::to_string(1111);
编译成Android就报
jni/…/…/Classes/AppDelegate.cpp:33:21: error: ‘to_string’ is not a member of ‘std’
std::string a = std::to_string(1111);
^
At global scope:
cc1plus: warning: unrecognized command line option “-Wno-extern-c-compat”
cc1plus: warning: unrecognized command line option “-Wno-extern-c-compat”
make: *** Error 1
哪位大神或者版主帮忙看看好吗?祝各位新年快乐~~~