This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problem declaring struct and union


 Hi together,



my name is steffen and I use the gcc 3.4.4.

I have got the following code and I don`t understand why it will not be complied.



struct INTC_tag {

     union {

          VUINT32 R;

          struct {

               VUINT32:26;

               VUINT32 VTES:1;

               VUINT32:4;

               VUINT32 HVEN:1;

          } B;

     } MCR;

};

The error is:

warning: no semicolon at end of struct or union

error: parse error before numeric constant



Can anyone help me please ?!



Thanks



Steffen

______________________________________________________________________
XXL-Speicher, PC-Virenschutz, Spartarife & mehr: Nur im WEB.DE Club!		
Jetzt gratis testen! http://freemail.web.de/home/landingpad/?mc=021130


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]