Error: #40: expected an identifier ------------------------------------------ typedef enum { WITH_A = 0, /* Comment 1*/
WITH_B, /* Comment 2 */
WITH_B, /* Comment 3 */
WITH_C, /* Comment 4 */ /* Comment 5 */
WITH_D, /* Comment 6 */
WITH_E, /* Comment 7 */
WITH_MAX = 0xFFFF } abc;
I'm getting the below mentioned error "file1.c", line 761: Error: #40: expected an identifier
WITH_D, ^
"file1.c", line 764: Error: #40: expected an identifier
WITH_E, ^
I'm using RVCT2.21P593 Compiler
sorry typo.. ------------------------------------------ Error: #40: expected an identifier ------------------------------------------
typedef enum { WITH_A = 0, /* Comment 1*/ WITH_B, /* Comment 2 */ WITH_X, /* Comment 3 */ WITH_C, /* Comment 4 */ /* Comment 5 */ WITH_D, /* Comment 6 */ WITH_E, /* Comment 7 */ WITH_MAX = 0xFFFF } abc;
I'm using RVCT2.21P593 Compiler. No idea What the compiler is complaining about ?
That is precisely why you must never, ever manually re-type code into your posts!
Please re-post the exact code from your source file using copy & paste.
Also, do the errors occur in the typedef shown, or are they elsewhere?
I try it and see the same problem.
Then I try with the new one and it goes better.
what new one?
what are you talking about?
I try it with a new file and it works sometimes.