Help with compile error, please

This is the way to go. Also, while the function prototypes are supposed to be handled automagically, sometimes actually writing them is the cure.