最新cocos 3.6 加入std::string就会崩溃,大家有没有遇到一样的情况?

#ifndef REWARDBOX_H
#define REWARDBOX_H
#include “cocos2d.h”
#include “cocostudio/CocoStudio.h”
#include “ui/CocosGUI.h”
#include

using namespace cocos2d::ui;
USING_NS_CC;
using namespace std;

enum StateEvent{
START,
PROCESS,
FINISH
};

class RewardBox:public cocos2d::Node
{
public:
RewardBox(void);
~RewardBox(void);

//CREATE_FUNC(RewardBox);

static RewardBox* create(Widget* back);

bool init();

bool initBox(Widget* back);

void setBorder(std::string path);

void run();

void stop();

void addProvideData(int data]);

void addProvideDataBeginToEnd(int begin,int end);

void clear();

bool build();

void setResult(int result);

void setResultIndex(int index);

public:
std::function<void(StateEvent,int)> onStateChangeHandle;
private:
CC_SYNTHESIZE(int,_delay,Delay);
CC_SYNTHESIZE(int,_gap,Gap);
std::vector provides;
std::string _borderPath;
CC_SYNTHESIZE(string,_iconPath,IconPath);

int _result;
int _index;

Widget* _back;
ImageView* _firstBox;
ImageView* _secondBox;
ImageView* _thirdBox;

};
#endif
红色为断点报错地方,也不知道怎么回事只要加入std::string 就报错。

试试把

#include
using namespace cocos2d::ui;
USING_NS_CC;
using namespace std;


#include
using namespace cocos2d::ui;
using namespace std;

这些都删除掉