Hi All,
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.Code:typedef enum AV_FORMATS_ENUM { AV_FORMAT_0 = 0, AV_FORMAT_1, AV_FORMAT_2, NUM_OF_AV_FORMATS } AV_FORMAT; typedef enum DECODE_TYPE_ENUM { DECODE_0 = 0, DECODE_1, DECODE_2, NUM_OF_DECODE_TYPES } DXVA_TYPE; 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.



LinkBack URL
About LinkBacks



