• Error: #40: expected an identifier
    Hi, My code: #ifndef __LPC_TYPES_H #define __LPC_TYPES_H #include <stdint.h> (49) typedef enum {FALSE = 0, TRUE = !FALSE} Bool; typedef enum {RESET = 0, SET = !RESET} FlagStatus,...
  • expected identifier error
    Hello everyone, I've been trying to make a struct and compiler gives me expected identifier error. Can anyone tell me where is my fault? struct State { unsigned long Out1; unsigned long out2;...
  • Error: #40: expected an identifier
    Error: #40: expected an identifier ------------------------------------------ typedef enum { WITH_A = 0, /* Comment 1*/ WITH_B, /* Comment 2 */ WITH_B, /* Comment 3 */ WITH_C, /* Comment...
  • Error: #40: expected an identifier
    Dear All, I am compiling following code. __asm{ STMDB R0!, {LR} }; __asm{ MOV LR, R0 }; __asm{ LDMIA SP!, {R0} }; . . . But compiler is giving me following errors for each of above line...
  • error: #40: expected an identifier - Device.h
    I am using std::vector library in my program and according this thread, it looks like we need to add Retarget.c needs to be added to the project. When I added that, I got an error as stated here -> ...