I'm having some trouble declaring a 2D array using enum members like so:
(code has been simplified for this example)
Now, this builds just fine on my local installation of MS Visual Studio 2008, however when I submit on our infrastructure's more stringent build system it says that the 2nd constant, NUM_OF_DECODE_TYPES, isn't declared.
typedef enum AV_FORMATS_ENUM
AV_FORMAT_0 = 0,
typedef enum DECODE_TYPE_ENUM
DECODE_0 = 0,
char FormatDecodeMatrix[NUM_OF_AV_FORMATS][NUM_OF_DECODE_TYPES]; <-- problem
So of course my questions is, whats wrong with this? NUM_OF_DECODE_TYPES is used in loops all over the code and my intent was that if somebody added a new format the rest of the could should work along with it.