|
From: Jaap de W. <wo...@Ne...> - 2003-02-13 07:44:04
|
Yes, the code you show here has correct syntax.
I expect that somewhere in your include files there is a
#define small char.
Just replace small by GranoBlasticSmall, and look what is happening..
BTW all coding books suggest you better can use a more explicit name.
Because the kind of names is so general, that they fit for any
implementation,
there is a big change that the names will conflict with a future or existing
name.
-----Original Message-----
From: Granoblastic Man [mailto:gr...@ta...]
Sent: Thursday, February 13, 2003 03:56 AM
To: dev...@li...
Subject: [Dev-C++] What the heck?!
When trying to compile my code, I get a long list of errors, but they can
all be traced back to one single error:
"36 C:\CYGWIN\HOME\Granoblastic Man\Triad\ITEM.h
parse error before `char'"
34 enum size
35 {
36 small,
37 medium,
38 large,
39 giant
40 };
... What in the heck is it talking about? From what I recall, enums can have
any name assigned to the variables, right? So what's wrong with _this_
enum?!
|