At least the function declaration (in .h) differs from its definition (in .cpp). You must have applied the change to only either one. There might be some other syntactical problems as well but unfortunately I've got to go now. Ensure that you've got suitable includes and that the class declaration ends to a semi-colon (";").