Page 1 of 1

Invalid declarator expected'(' or identifier

Posted: 24 Oct 2022 21:32
by MickeyReilley
Can someone explain the error message "Invalid declarator expected'(' or identifier" ? I'm getting this when I rename one of my functions from all lowercase to all uppercase:

Code: Select all

void cmd_button(unsigned long xPosition);   //No issues
void CMD_BUTTON(unsigned long xPosition);   //Compiler error 

Re: Invalid declarator expected'(' or identifier

Posted: 25 Oct 2022 01:18
by MickeyReilley
I figured it out. I had a #define macro for the caps version. I'm not clear on the meaning of the error message, but this was my problem.