Codewarrior Illegal initialization of aggregate type

cancel
Showing results for 
Search instead for 
Did you mean: 

Codewarrior Illegal initialization of aggregate type

145 Views
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

102 Views
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

88 Views
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

102 Views
Contributor V

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

0 Kudos

114 Views
Contributor V

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

0 Kudos

115 Views
Contributor V

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

0 Kudos

128 Views
Contributor V

I have version 5.9.0 build 5294

0 Kudos

129 Views
Contributor V

I have version 5.9.0 build 5294

Ray.

0 Kudos

133 Views
NXP TechSupport
NXP TechSupport

Hello,

 

Can you, please, share the version of CodeWarrior?

 

Thank you.

Best regards,

Diana

0 Kudos