Let me walk you through my problem. I have class Test. In a function I have:
Now I call another function and pass thing to it as &thing. That function recieves it as *ttt which is obviously a pointer. Now my problem comes in when I need to pass *ttt to another function. At the moment I have the following:Code:Test thing;
The function prototype looks as follows:Code:compAI( &row, &column, ttt );
The program compiles, but as it's being linked I get the following error:Code:void compAI( int *, int *, TicTacToe * );
I don't know how to pass a pointer from one function to another and am guessing that I've done it incorrectly. Assistance required please.main.o(.text+0x113b):main.cpp: undefined reference to `compAI(int*, int*, TicTacToe*)'
make.exe: *** [tictactoe-game.exe] Error 1