#ifndef _NETVAR_DEF_
typedef struct stVarDes
{ unsigned char *addr;
unsigned size;
unsigned type;
} stVarDes;
#define _NETVAR_DEF_
#endifconst 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 23
Error[Pe041]: expression must have arithmetic or pointer type ...\netVar.c 23
Error[Pe028]: expression must have a constant value ...\netVar.c 24
Error[Pe041]: expression must have arithmetic or pointer type ...\netVar.c 24
Error[Pe028]: expression must have a constant value ...\netVar.c 25
Error[Pe041]: expression must have arithmetic or pointer type ...\netVar.c 25