I'll try to be brief. I have several classes in my program, and now I'm having trouble making them work together. The details: I have classes Ball (Ball.cpp + Ball.h) and Wall (Wall.cpp + Wall.h). I was trying to create a new function in Ball with a parameter of type Wall, as follows:
Code:
class Ball
{
[...]
bool CB_col(Wall blck) const;
[...]
};
This is its declaration in Ball.h, line 27. It is also mentioned in Ball.cpp properly.
However, the compiler doesn't seem to accept the code:
Code:
ball.h(27) : error C2061: syntax error : identifier 'Wall'
I was made sure to include the header file:

Ball.cpp
Code:
#ifndef WALL_DECLARE
#define WALL_DECLARE
#include "Wall.h"
#endif

[...]
I've searched through many places about this, but this just feels different from all others. There is absolutely no semi-comma or bracket missing in any of the 4 files.
If there isn't enough info on the problem, it can be provided when requested. Thanks in advance.