Quote:
|
Originally Posted by gnormhurst
Besides, if enum{} wasn't allowed, just changing the names of the identifiers would not have eliminated the syntax error. But it did.
I'm still confused.
|
All of those identifiers are #defined in robot.h:
Code:
/* Command States */
/* These states are used by the commands to keep track of the robot's
progress in completing each command. */
#define START 1
#define IN_PROGRESS 2
#define COMPLETE 3
#define TURNING 4
#define DRIVING 5
#define STOPPED 6
I think this explains the mystery.
Quote:
|
I figured there must be a name conflict (since I'm using bits of Kevin's code), so I Searched in Project Files... for "IN_PROGRESS", but it is only defined in this one place. No conflict. As I modify each variable in the list, the error moves down the list.
|
"Find in Project Files" only searches files it knows about in the project. (i.e. listed in the project window), whereas, the compiler couldn't care less about the files in the IDE's list. It cares about #include statements only.