#ifndef _NETVAR_DEF_
typedef struct st_globalData
{ float pass;
float status;
float exps;
} st_globalData;
typedef struct stVarDes
{ unsigned char *addr;
unsigned size;
unsigned type;
} stVarDes;
#define _NETVAR_DEF_
#endifst_globalData globalData;
st_globalData *pGD=&globalData;
const struct varTbl1
{ unsigned num;
stVarDes varDes[3];
} varTbl1=
{ 3,
{
{ (unsigned char *)&pGD->pass, sizeof(pGD->pass), 1},
{ (unsigned char *)&pGD->status, sizeof(pGD->status), 1},
{ (unsigned char *)&pGD->exps, sizeof(pGD->exps), 1}
}
};
Error[Pe028]: expression must have a constant value ...\netVar.c 28
Error[Pe041]: expression must have arithmetic or pointer type ...\netVar.c 28
Error[Pe028]: expression must have a constant value ...\netVar.c 29
Error[Pe041]: expression must have arithmetic or pointer type ...\netVar.c 29
Error[Pe028]: expression must have a constant value ...\netVar.c 30
Error[Pe041]: expression must have arithmetic or pointer type ...\netVar.c 30