关于c语言结构体的问题
typedef struct typFNT_GB16 char Index[2];
char Msk[32];
}HZ;
struct typFNT_GB16 HzLib1[]={};
这样定义的一个结构体数组 后面的HzLib1[]={};实际上是有值的,太长就没粘出来了。
用的是IAR编译 但是总是报错
Error[Pe101]: "typFNT_GB16" has already been declared in the current scope (at line 6) H:\WorkFile\IAR project\12864menu\Zimo.h 6
Error[Pe101]: "HZ" has already been declared in the current scope (at line 10) H:\WorkFile\IAR project\12864menu\Zimo.h 10
Error[Pe147]: declaration is incompatible with "typFNT_GB16 HzLib1[15]" (declared at line 12) H:\WorkFile\IAR project\12864menu\Zimo.h 12
求大神指教