variable "xxx" has initializer but incomplete type

variable "xxx" has initializer but incomplete type

编译报以上错误

分析:“xxx”对应的类型没有找到,没包含定义该变量类型的头文件导致的。

解决包含该头文件

#include 

原文地址:https://www.cnblogs.com/f-wind/p/13856186.html