0

i have a problem with double-dimension array definition in C.

I have #define in preprocessor for numbers, and i want to put them into an array.

#define BAND11 63  
#define BAND12 99  
#define BAND13 130    
#define BAND14 170    
#define BAND15 255  

etc... the numbers rangefrom 0 to 255

uint8 bands [][] = { {BAND11,BAND12,BAND13,BAND14,BAND15,BAND16,BAND17,BAND18,BAND19},
        {BAND21,BAND22,BAND23,BAND24,BAND25,BAND26,BAND27,BAND28,BAND29},
        {BAND31,BAND32,BAND33,BAND34,BAND35,BAND36,BAND37,BAND38,BAND39},
        {BAND41,BAND42,BAND43,BAND44,BAND45,BAND46,BAND47,BAND48,BAND49},
        {BAND51,BAND52,BAND53,BAND54,BAND55,BAND56,BAND57,BAND58,BAND59} };  

the array shows me an error: array type has incomplete element type

what can be the problem? i tried to google, but didnt find anything thank you in advance Daniel

Daniel
  • 1
  • need a size in the first. Cannot do `[][]`. Need `uint8_t bands[][9]` or whatever fits here. – Jason Oct 18 '22 at 13:48

0 Answers0