[Solved]AutoPolygon' has not been declared

auto pinfo = AutoPolygon::generatePolygon(“Images/bg2.png”);// Create a sprite with polygon info.

whenever i am going to use AutoPolygon it giving error "
‘AutoPolygon’ has not been declared ".I am using cocos2d Vx3.9

AutoPolygon
???/

is am i missing any header that is mandatory to use?

You haven’t posted enough code for us to tell you.

Are you including “cocos2d.h”?

are you using cocos2d namespace?

Does this work:

auto pinfo = cocos2d::AutoPolygon::generatePolygon("Images/bg2.png");// Create a sprite with polygon info.

Already I have added header and namespace but it still giving error .I am using V3.10. here i am sharing screenshot with you.

This is what I have:

it does not matter what resources i am using .why its giving error Auto Polygon has not been declared?
even i have done everything that is required for this functionality.

are you sure you are using v3.9?

yeah, it was the reason. any how it was taking the reference of v.3.3.
Thanks

We have API-Refs here