I'm using Dev-cpp as my IDE, compiler is hitting just one line with errors:
Line 36 : variable or field `destroyDirt' declared void
Line 36 : expected `;' before '(' token
Line 36 is void destroyDirt(xyCord);
the surrounding code is:
This header file seems otherwise fine. Moving that function declaration within the file does not change the error (the line number of the error follows this function). If I comment out this function (and it's related definition) it compiles fine.Code:// class constructor DirtField(SDL_Surface * battlefield); // class destructor ~DirtField(); // destroy the dirt (if present) at the specified point void destroyDirt(xyCord);
I am terribly vexed...