Error when try to define the use of accelerator

Hi,
I try to use the accelerometer in cocos2d-x 2.0.1 version.

I try to use
this->setIsAccelerometerEnabled(true);

But when I compile the project I receive the following error:
‘class HelloWorld’ has no member named ‘setIsAccelerometerEnabled’

I don’t understand why I receive this error since my HelloWorld class extends CCLayer

this is the declaration in my HelloWorldScene.h
class HelloWorld : public cocos2d::CCLayer

The function is just

this->setAccelerometerEnabled(true);

http://www.cocos2d-x.org/reference/native-cpp/d9/d66/classcocos2d_1_1_c_c_layer.html#a6ebdb5cc8cc313f436294951c55fc65e

Thanks, it works now