Hi all !
I have trouble with C++ .
If i want to replace scene 1 to scene 2 , in scene1.h i need inlude “scene2.h”
and when i replace scene 2 to scene 1 i need include “scene1.h” again .
but in scene1.h still include scene2.h ….
err here :
1>f:2d-x\cocos2d-2.1rc0-x-2.1.3\gofac_cd\proj.win32\gamescene.h(5): error C2011: ‘GameScene’ : ‘class’ type redefinition
1> f:2d-x\cocos2d-2.1rc0-x-2.1.3\gofac_cd\proj.win32\gamescene.h(5) : see declaration of ‘GameScene’
1>f:2d-x\cocos2d-2.1rc0-x-2.1.3\gofac_cd\proj.win32\gvbuttonsprite.h(5): error C2011: ‘GVButtonSprite’ : ‘class’ type redefinition
1> f:2d-x\cocos2d-2.1rc0-x-2.1.3\gofac_cd\proj.win32\gvbuttonsprite.h(5) : see declaration of ‘GVButtonSprite’
1>f:2d-x\cocos2d-2.1rc0-x-2.1.3\gofac_cd\proj.win32\choosebutton.h(6): error C2011: ‘ChooseButton’ : ‘class’ type redefinition
1> f:2d-x\cocos2d-2.1rc0-x-2.1.3\gofac_cd\proj.win32\choosebutton.h(6) : see declaration of ‘ChooseButton’
1>f:2d-x\cocos2d-2.1rc0-x-2.1.3\gofac_cd\proj.win32\gamescene.h(1): fatal error C1014: too many include files : depth = 1024
someone answer me please sorry my english not good