compiling error

#include <iostream>
using std::cout;
using std::cin;
using std::endl;

please help
this code is part of a class i have but when i try to run it it says undefinedReference to
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
board::docommand(char)
#include "user.h"
#include "board.h"


int main(void)
{
        User player;//1.create a User object called player
        Board gameBoard;//2.create a Board object called gameBoard

    char theCommand; 	//char variable to store the player's current command
    do
    {

        theCommand=player.getCommand();//3.Use the player object's get Command function to get a command and assign it to variable theCommand

        //4.check if theCommand is not the quit command Q
           // Now it's a string!


        if(theCommand !='Q')

            //if theCommand is not to quit, then pass it to the gameBoard to process
            gameBoard.doCommand(theCommand);


} while(theCommand != 'Q'); //quits when the player presses 'Q'


    return 0;
};
Last edited on
Note that c++ is case sensitive: docommand(...) is not doCommand(...).
Topic archived. No new replies allowed.