代码如下:
struct stuTest{
unsigned char stu1[10];
unsigned char stu2[11];
unsigned char stu3[5];
unsigned char stu4[5];
};
struct stuTest Testl;
struct stuTest *pStu;
pStu=&Testl;
在IAR for STM8 上编译,无法通过。请大家帮忙看看问题出在那里?
Error[Pe077]: this declaration has no storage class or type specifier
Error[Pe147]: declaration is incompatible with "struct stuTest *__near pStu" (declared at line 66)
Error[Pe144]: a value of type "struct stuTest *" cannot be used to initialize an entity of type "int" |