View Single Post
  #9   Spotlight this post!  
Unread 07-02-2005, 11:07
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: syntax error using enum{}

Quote:
Originally Posted by gnormhurst
You'd think the compiler could have said something a little more helpful than "syntax error"...
Agreed, but keep in mind what was happening: your "enum" values were being replaced with the #defines from robot.h, so to the compiler your enum ended up looking like this:
Code:
enum
{
  1,
  2,
  3,
  4,
  5
};
While that doesn't excuse the cryptic error generated, it might at least make sense why the compiler reported a syntax error (because it is!).