Invalid declarator expected'(' or identifier

Post Reply
Author
Message
MickeyReilley
Posts: 9
Joined: 02 Oct 2022 22:38

Invalid declarator expected'(' or identifier

#1 Post by MickeyReilley » 24 Oct 2022 21:32

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 

MickeyReilley
Posts: 9
Joined: 02 Oct 2022 22:38

Re: Invalid declarator expected'(' or identifier

#2 Post by MickeyReilley » 25 Oct 2022 01:18

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.

Post Reply

Return to “dsPIC Compilers General”