title: Error trying to define a 1,024-bit (128 Byte) Bit Field
body: <p>I would like to define a large bitfield for the purpose of quickly monitoring the status a very large structure of elements.  Here is what I have so far:</p>
  
  <pre>#define TOTAL_ELEMENTS 1021
  
  typedef struct UINT1024_tag
  {
     UINT8 byte[128];
  } UINT1024;
  
  typedef struct flags_tag
  {
     UINT1024:TOTAL_ELEMENTS;
  } flags_t;</pre>
  
  <p>When I try compiling this, I get the error message, <b>"error: bit-field `&lt;anonymous&gt;' has invalid type"</b></p>
  
  <p>Can bit-fields only be used on certain types?  I thought that if I defined a large-enough variable, the massive bitfield needed for my application could then be defined because the bitfield has to be no larger than the type used to define it.</p>
  
  <p>Any thoughts or suggestions would be appreciated.</p>