草庐IT

c++ - 不完整类型/前向声明的无效使用

我尝试查看Stackoverflow和Google上列出的类似问题,但它们主要处理模板,这不是我的情况。我在Debian测试64位上使用GCC4.4.5。所以,我有两个类-CEntity:#ifndefCENTITY_H_INCLUDED#defineCENTITY_H_INCLUDED#include"global_includes.h"//game#include"CAnimation.h"#include"Vars.h"#include"vector2f.h"#include"Utils.h"classCAnimation;classCEntity{public:CEntity(

c++ - 不完整类型/前向声明的无效使用

我尝试查看Stackoverflow和Google上列出的类似问题,但它们主要处理模板,这不是我的情况。我在Debian测试64位上使用GCC4.4.5。所以,我有两个类-CEntity:#ifndefCENTITY_H_INCLUDED#defineCENTITY_H_INCLUDED#include"global_includes.h"//game#include"CAnimation.h"#include"Vars.h"#include"vector2f.h"#include"Utils.h"classCAnimation;classCEntity{public:CEntity(