Quote Originally Posted by E_net4 View Post
The main problem (C2061) remains, though.
You have to include wall.h in ball.h

// wall.h
Code:
#ifndef WALL_H
#define WALL_H

class Wall
{
//...
};

#endif // WALL_H
// ball.h
Code:
#ifndef BALL_H
#define BALL_H

#include "wall.h"

class Ball
{
//...
    void foo(Wall& wall);
};

#endif // BALL_H