CREATE_FUNC(YJBaseView),where wrong?

I’m updating my cocos2d-x from 2.0.1 to 2.1.4 .
I found LAYER_CREATE_FUNC(YJBaseView) be error.
Then I change to CREATE_FUNC(YJBaseView). It say: cannot allocate an object of abstract type ‘YJBaseView’

Thanks!

it looks like you are missing the implementation of some abstract method, on a parent class

Thanks!
I find my class has a virtual method “virtual void doMessageHandle(Response* pResp) = 0 ;”

Then I think why in 2.0.1 it is not error?

In 2.0.1 times, my environment is android ndk + windows.
In 2.1.4 times, my environment is qt + ubuntu.

My YJBaseView is not used. In ndk it is not compile. In qt it is compiled and error happend!

Jesus Bosch wrote:

it looks like you are missing the implementation of some abstract method, on a parent class

this is a C++ programming issue, has nothing to do with cocos2dx.

You probably need to implement virtual void doMessageHandle(Response* pResp) in the child class, since it’s abstract.