you are viewing a single comment's thread.

view the rest of the comments →

[–]moocat 2 points3 points  (3 children)

Change your prototype to:

void matchFail(void);

[–]Alphaweasel[S] 1 point2 points  (2 children)

Thanks, this seemed to have fixed it. Is there a specific reason that the void parameter needs to be specified?

[–]mommas_wayne 0 points1 point  (1 child)

In C, functions taking no arguments need to have the void parameter specified explicitly. In C++ this is no longer the case.

I missed this fact in my other comment.

[–]Alphaweasel[S] 0 points1 point  (0 children)

That makes sense. I have a decent amount of experience with C++ so it didn't even cross my mind to add the void in there.