Codewarrior Illegal initialization of aggregate type

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Codewarrior Illegal initialization of aggregate type

2,283件の閲覧回数
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,240件の閲覧回数
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 件の賞賛
返信

2,226件の閲覧回数
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,240件の閲覧回数
rayhall
Contributor V

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

0 件の賞賛
返信

2,252件の閲覧回数
rayhall
Contributor V

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

0 件の賞賛
返信

2,253件の閲覧回数
rayhall
Contributor V

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

0 件の賞賛
返信

2,266件の閲覧回数
rayhall
Contributor V

I have version 5.9.0 build 5294

0 件の賞賛
返信

2,267件の閲覧回数
rayhall
Contributor V

I have version 5.9.0 build 5294

Ray.

0 件の賞賛
返信

2,271件の閲覧回数
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

 

Can you, please, share the version of CodeWarrior?

 

Thank you.

Best regards,

Diana

0 件の賞賛
返信