用CCS编程,用到结构体,但是老报错,求助!
typedefunionaa{longMCMIT;inttable[2];}aa_if,aa_vg,aa_vn;aa_if.table={0x0001,0x0000};a...
typedef union aa
{
long MCMIT;
int table[2];
}aa_if,aa_vg,aa_vn;
aa_if.table={0x0001,0x0000};
aa_vg.table={0x0000,0x0000};
aa_vn.table={0x0002,0x0000};
报错内容如下:
"syn_closer_0213.c", line 37: error: expected an identifier
"syn_closer_0213.c", line 37: error: too many initializer values
"syn_closer_0213.c", line 38: error: expected an identifier
"syn_closer_0213.c", line 38: error: too many initializer values
"syn_closer_0213.c", line 39: error: expected an identifier
"syn_closer_0213.c", line 39: error: too many initializer values 展开
{
long MCMIT;
int table[2];
}aa_if,aa_vg,aa_vn;
aa_if.table={0x0001,0x0000};
aa_vg.table={0x0000,0x0000};
aa_vn.table={0x0002,0x0000};
报错内容如下:
"syn_closer_0213.c", line 37: error: expected an identifier
"syn_closer_0213.c", line 37: error: too many initializer values
"syn_closer_0213.c", line 38: error: expected an identifier
"syn_closer_0213.c", line 38: error: too many initializer values
"syn_closer_0213.c", line 39: error: expected an identifier
"syn_closer_0213.c", line 39: error: too many initializer values 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询