Codewarrior Illegal initialization of aggregate type

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Codewarrior Illegal initialization of aggregate type

2,047 次查看
rayhall
Contributor V

I keep getting this error when I compile and cannot see why.

The LockupMap[2]12[] array initialization in the C file causes this error and I cannot see anything wrong.

I have included the two files.

Ray.

 

0 项奖励
8 回复数

2,004 次查看
rayhall
Contributor V

This is all I can find that gives a version.

CodeWarrior Development Studio fort he S12(X) Version 5.2, build 151127

Ray.

0 项奖励

1,990 次查看
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

Thank you.

One value is missing in the "Real Time Data" in the Cal.c file.

Also, the array below is filled with 25 numbers, but your size is uint16_t lockupMap[2][12]; in the Cal.h

{1,10,20,30,40,50,60,70,80,90,100,110,120,
200,300,400,500,600,700,800,900,1000,1100,1200,1300}, // LockupMap

I believe it helps.

Best regards,

Diana

 

0 项奖励

2,004 次查看
rayhall
Contributor V

CodeWarrior Development Studio fort he S12(X) Version 5.2, build 151127

0 项奖励

2,016 次查看
rayhall
Contributor V

CodeWarrior Development Studio for the S12(X) Version 5.2, build 151127

0 项奖励

2,017 次查看
rayhall
Contributor V

CodeWarrior Development Studio fort he S12(X) Version 5.2, build 151127

0 项奖励

2,030 次查看
rayhall
Contributor V

I have version 5.9.0 build 5294

0 项奖励

2,031 次查看
rayhall
Contributor V

I have version 5.9.0 build 5294

Ray.

0 项奖励

2,035 次查看
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

 

Can you, please, share the version of CodeWarrior?

 

Thank you.

Best regards,

Diana

0 项奖励