error: invalid use of incomplete type 'XXXX'
error: forward declaration of XXXX
声明改为包含头文件
class XXXX;
#include "XXXX.h"
本文解决了一个关于类XXXX声明引发的编译错误问题。通过将前向声明更改为包含相应的头文件,有效地解决了invalid use of incomplete type及forward declaration的错误。
error: invalid use of incomplete type 'XXXX'
error: forward declaration of XXXX
声明改为包含头文件
class XXXX;
#include "XXXX.h"
2909

被折叠的 条评论
为什么被折叠?