Getting "undefined reference to 'takeTurns(bool, int)" and don't know why

Hello, I am making a tic tac toe game, and when I try to compile I get the above error.

http://pastebin.com/bsZscw6B

on line 32 is the error. And when I comment out line 32, the rest of the program runs fine.
Last edited on
Your prototype does not match your body.

Line 9 is your prototype:
 
void takeTurns(bool, int);

note the parameters: bool, int

Line 55 is your body:
void takeTurns(bool winCheck(), int player)
note the different parameters: bool(), int


Lose the parenthesis one line 55, 57, and 62.


You use the parenthesis to call a function. takeTurns is not calling a function, it's just using the boolean value that was passed to it. The winCheck function was already called by main.
Last edited on
Thanks for the speedy reply, that fixed it.

Cheers!
Topic archived. No new replies allowed.