Codewarrior Illegal initialization of aggregate type

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Codewarrior Illegal initialization of aggregate type

2,010 Views
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 Kudos
8 Replies

1,967 Views
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 Kudos

1,953 Views
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 Kudos

1,967 Views
rayhall
Contributor V

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

0 Kudos

1,979 Views
rayhall
Contributor V

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

0 Kudos

1,980 Views
rayhall
Contributor V

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

0 Kudos

1,993 Views
rayhall
Contributor V

I have version 5.9.0 build 5294

0 Kudos

1,994 Views
rayhall
Contributor V

I have version 5.9.0 build 5294

Ray.

0 Kudos

1,998 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

 

Can you, please, share the version of CodeWarrior?

 

Thank you.

Best regards,

Diana

0 Kudos