News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

help me this error

Started by salo, March 22, 2010, 12:51:39 PM

Previous topic - Next topic

salo

When I used code:: block to run a trinh.Thi code:: block does not support keyword union Regs.
i can't fix error that.

MortenMacFly

Quote from: salo on March 22, 2010, 12:51:39 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

rcoll

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