Thread: undefined reference to class function

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Jan 2011
    Posts
    87
    are you saying, I have to call play_move with members of cn_board?

    If you will look in testing for cn_board, I call play_move with two literals, and it works fine, however, using two literals instead of variables in cn_board_node still gives an error
    Code:
        temp->play_move(1, '0'); //both still give the same error
        temp->play_move(temp->get_height(), temp->get_width());
    std: I am asking why my call to temp->play_move() doesn't work in cn_board_node, but is working fine in testing for cn_board
    Last edited by bobknows; 11-27-2012 at 05:01 PM.

  2. #2
    SAMARAS std10093's Avatar
    Join Date
    Jan 2011
    Location
    Nice, France
    Posts
    2,694
    Quote Originally Posted by bobknows View Post
    std: I am asking why my call to temp->play_move() doesn't work in cn_board_node, but is working fine in testing for cn_board
    Yes, you were clear. That's why i said not what you are asking. What I said is a general observation.

    But you did not answer if you are sure it is not null.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. undefined reference to (function)
    By django in forum C Programming
    Replies: 6
    Last Post: 09-04-2011, 12:06 PM
  2. undefined reference to a function
    By ChoCo in forum C Programming
    Replies: 1
    Last Post: 10-04-2009, 12:08 AM
  3. Undefined Reference to function?
    By fireonyx in forum C Programming
    Replies: 6
    Last Post: 03-17-2006, 06:15 PM
  4. undefined reference to a function
    By rodrigouy in forum C Programming
    Replies: 7
    Last Post: 01-17-2006, 06:47 AM
  5. undefined reference to function in class error
    By bladerunner627 in forum C++ Programming
    Replies: 12
    Last Post: 10-18-2005, 09:06 AM