I am getting "Initializer Element is not a constant" error for the following declaration.
struct EBD_HEADER
{
char x;
int Key;
char Number;
int ID;
int Version;
}EBD_HEAD;
struct EBD_TRAILER
{
int Crc_0;
int Crc_1;
int Etx;
}EBD_TRAIL;
static const int EBD_HEADER_SIZE = sizeof(EBD_HEAD);
static const int EBD_TRAILER_SIZE = sizeof(EBD_TRAIL);
static const int RMH_ENCODED_MSG_OVERHEAD = EBD_HEADER_SIZE +
EBD_TRAILER_SIZE; //**error:Intializer Element is not a constant**