C++ Struct function body calling another structs function, same module -
i attempting make chess module using chesspiece struct , chessgame struct. using xcode 6.1.1. here header file , function in question in chess.cpp. error, "use of undeclared identifier 'initchesspiece' did mean 'chesspiece::initchesspiece'?. if make change says error, 'call non-stack member function without object argument.' finally, if make line, game.pieces[i].initchesspiece(game.pieces[i], color, piece, x, y); linker throws error: undefined symbols architecture x86_64: "chesspiece::initchesspiece(chesspiece, std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&, unsigned int, unsigned int)", referenced from: readchessgame(chessgame&, std::__1::basic_string, std::__1::allocator > const&) in chess.o ld: symbol(s) not found architecture x86_64 clang: error: linker command failed exit code 1 (use -v see invocation) #ifndef chess_h #define chess_h #in...