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!).