error C2133: <My_Struct> : unknown size
I have the code below:
Code:
#define MAXVARIABLES 127
#define MAXVARLENGTH 127
struct VariableValue
{
char variable[MAXVARLENGTH];
int value;
};
struct pVarVals VariableValue[MAXVARIABLES];
When i try to compile i get the error message above (subject of this thread).
I looked at the MSDN, and it didn't really say much: only that you aren't allowed to use arrays as part of a structure, when you have the '/Za' compile directive.
Can u just compile without this directive, or will it likely screw up something?
Thanks for any help you may provide. :)
EDIT: Had a look in project options and have found where i think /Za should be and it isn't, so if disabling it is the best option, then please explain how. Cheers.