I have 4 files,
HomeScene.h
HomeScene.cpp
Options.h
Options.cpp
both the *.h
files have the other *.h
included.
Now I am trying to inherit HomeScene.h in Options.h
class OptionScene : public cocos2d::CCLayerColor,HomeScene
the above line gives so many errors.
class OptionScene : public cocos2d::CCLayerColor
the above line has no errors
I have a static bool var;
in my HomeScene.h
which I am trying to use directly in my options scene.