I have following in my header file
typedef unsigned int FRAMEBIT;
typedef struct Msg_Node
{
FRAMEBIT Msg_Id;
FRAMEBIT MSg_Indx;
FRAMEBIT Msg_Size;
struct cmd_Header* pcmd_attr;
struct Msg_Node *pNext;
}Msg_Node_T;
and in source file
static Msg_Node_T MSG[ 6 ] = {
{ 0 , 112 , &MSG[1]} ,
{ 113 , 32 , &MSG[2]} ,
{ 146 , 64 , &MSG[3]} ,
{ 211 , 72 , &MSG[4]} ,
{ 284 , 64 , &MSG[5]} ,
{ 349 , 32 , 0}
};
and getting an error c2099 initliazer is not a constant
how can i remove this error?
why this error is coming?