【已解决】cocos2dx win32 项目中使用CCArmature的问题

环境: cocos2d-x 2.2 + winxp + vs 2010

使用project-create.py创建了win32的Helloworld项目,可以正常运行。
但是在我加入:


#include “cocos-ext.h”
CCArmature* armature = NULL;

两行代码后,就报错:

1> HelloWorldScene.cpp
1> helloworldscene.cpp(79): error C2065: “CCArmature”: 未声明的标识符
1> helloworldscene.cpp(79): error C2065: “armature”: 未声明的标识符

想问下这个可能是什么原因呢? (按理说project-create.py应该已经把所需的引用关系都搞定了的~)

命名空间也得加一下吧
using namespace cocos2d::extension;

感谢,这下ok了 :slight_smile: