本帖最后由 江陵龙少 于 2012-3-6 13:38 编辑
struct {
u8 TUG3;
u8 TUG2;
u8 TUG12;
}SDHSlot;
SDHSlot.TUG3=1;
最后一条赋值语句就是不行啊,编译到它就通不过,
compiling main.c...
..\main.c(38): error: #77-D: this declaration has no storage class or type specifier
..\main.c(38): error: #147: declaration is incompatible with "struct SDH SDHSlot" (declared at line 36)
..\main.c(38): error: #65: expected a ";"
..\main.c - 3 Error(s), 1 Warning(s). |