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:
Code:
#include <iostream>
#include "cell.h"
#include "board.h"
...
board.h:
Code:
#ifndef BOARD_H
#define BOARD_H
#include "record.h"
#include "cell.h"
//'board' object definition that contains a 'record' vector
#endif
record.h:
Code:
#ifndef COORD_H
#define COORD_H
#include "coord.h"
#include "board.h"
//'record' object definition that contains a 'board' pointer.
#endif
How do I make this work?