This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Compiler Error 143: 'Scalar' : Initialiser is not a constant

Hello,

This problem was already discussed in 2003 but without solution:
http://www.keil.com/forum/3743/

The c166 compiler seems to don't like an initialization of a constant with a pointer.

I have to integrate a file with this part of code:

 AR_SEC_CONST_UNSPECIFIED_STATIC MAP_Tab1DS0I2T1044_StaCtl SStaCtl10_StaC__eq_tCoMes_T_map = {
   12 /* Nx:  */,
   (const SInt16 *)&(StaCtl_tiMaxStaReq_tCoMes_A[0]) /* x_table: vector with x-values */,
   (const UInt32 *)&(StaCtl_tiMaxStaReq_tCoMes_T[0]) /* z_table: matrix with z-values */
};

but I have an error: 'scalar': initializer is not a constant

The discussion indicated in reference end after some consideration about the ISO C but doesn't give solutions.
Does it's an compiler limitation ?