[Closed]The type 'GameOverLayer' must implement the inherited pure virtual method 'cocos2d::CCRGBAProtocol::setOpacity'

Hi,all
I follow sample http://www.cocos2d-x.org/projects/cocos2d-x/wiki/Chapter_7*-*Some_Icing_on_the_Cake

and type code in GameOverScene.h header file

class GameOverLayer : public cocos2d::CCLayerColor
{
public:
GameOverLayer():_label(NULL) {};
virtual GameOverLayer;
\ bool\ init;
\ LAYER_NODE_FUNC;
\ void\ gameOverDone;
\ CC_SYNTHESIZE_READONLY;
};
but\ the\ method\
LAYER_NODE_FUNC;
error
?

the tips is “The type ‘GameOverLayer’ must implement the inherited pure virtual method ‘cocos2d::CCRGBAProtocol::setOpacity’”
Is this my false or there is something def in cocos2d-1.0.1-x-0.10.0?:frowning:

————————————2012-01-04

I fixed the problem. My faults, it’s environment error.

Apparently I have the same problem. What exactly did you do to fix it?

Might be useful for future newbies.

You goto Eclipse~~>Preferences~~>C/C++>Code Analysis>Syntax and Semantic Errors

Uncheck “Abstract classes cannot be instantiated”