Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

Re: I Need A Compiler

Re: I Need A Compiler

2007-01-28 by Larrie Carr

Have you coded your enum statement with a name label?  Like

enum week { Mon, Tue, Wed, Thu, Fri Sat, Sun} days;

Right now, you aren't assigning a tag (the "week") to the enumeration. 
Would explain the problem with the next possible tag being main which would 
be illegal use.

Larrie.

Re: [AVR-Chat] Re: I Need A Compiler

2007-01-29 by Russell Shaw

Larrie Carr wrote:
> Have you coded your enum statement with a name label?  Like
> 
> enum week { Mon, Tue, Wed, Thu, Fri Sat, Sun} days;
> 
> Right now, you aren't assigning a tag (the "week") to the enumeration. 
> Would explain the problem with the next possible tag being main which would 
> be illegal use.

Struct, union, and enum tags are optional in C. Perfectly legal:

   enum { Mon, Tue, Wed, Thu, Fri Sat, Sun} days;

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.