Originally Posted by hunter_king
here'is the code
Since that code wouldn't give the error you described, I assume you simplified the actual code before posting (often a good practice) but failed to retest the simplified code to make sure it had the same error as the original (clearly a bad practice).
Consider this incorrect program similar to what you posted. With some compiler, I think it would give the error you reported (though with my copy of gcc it gives a different error). I'm intending this to show that the difference between what you posted and what you tested might be subtle.
#define TRUE 1;
#define FALSE 0;
int compare (char opt_1, char opt_2)
if (opt_1 == '*' || opt_1 == '/')