The objects 'board' and 'record' are not recognizing each other. I've used #ifndef #endif commands to prevent header redundancy, but that might be part of the problem. Anyway:
main.cpp:
board.h:Code:#include <iostream> #include "cell.h" #include "board.h" ...
record.h:Code:#ifndef BOARD_H #define BOARD_H #include "record.h" #include "cell.h" //'board' object definition that contains a 'record' vector #endif
How do I make this work?Code:#ifndef COORD_H #define COORD_H #include "coord.h" #include "board.h" //'record' object definition that contains a 'board' pointer. #endif



LinkBack URL
About LinkBacks


