小编Yar*_*lov的帖子

c-错误:“不允许输入不完整的类型”,IAR编译器

请指教,怎么了?

.h中

struct {
      uint8_t time;
      uint8_t type;
      uint8_t phase;
      uint8_t status;
} Raw_data_struct;  


typedef struct Raw_data_struct Getst_struct;

void Getst_resp(Getst_struct Data);
Run Code Online (Sandbox Code Playgroud)

.c中

void Getst_resp(Getst_struct  Data) //Here Error: incomplete type is not allowed                                        
{

};
Run Code Online (Sandbox Code Playgroud)

c data-structures incomplete-type

2
推荐指数
1
解决办法
2万
查看次数

标签 统计

c ×1

data-structures ×1

incomplete-type ×1