Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Contributions to C::B => Topic started by: salo on March 22, 2010, 12:51:39 pm

Title: help me this error
Post by: salo on March 22, 2010, 12:51:39 pm
When I used code:: block to run a trinh.Thi code:: block does not support keyword union Regs.
i can't fix error that.
(http://c.upanh.com/upload/4/178/0.089771001269257987.jpg)
Title: Re: help me this error
Post by: MortenMacFly on March 22, 2010, 02:38:36 pm
Thi code:: block does not support keyword union Regs.
This error is thrown by the compiler, not Code::Blocks. Code::Blocks is just the IDE reporting this to you, nothing else. Ask in a C / C++ / compiler forum for help and / or check your project settings. This forum is dedicated to Code::Blocks related errors, only.
Title: Re: help me this error
Post by: rcoll on March 22, 2010, 06:08:04 pm
This is not the place to learn beginning programming ... but, just to expedite things a bit:
The compiler is NOT complaining about the "union" keyword; it is complaining that REGS has an unknown size.  Check your definition of REGS to make sure that it is properly defined.

Ringo