variable "xxx" has initializer but incomplete type

variable "xxx" has initializer but incomplete type

编译报以上错误

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

解决包含该头文件

#include 

posted @ 2020-10-22 09:19  f-wind  阅读(389)  评论(0编辑  收藏  举报