Originally Posted by E_net4 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
#ifndef WALL_H #define WALL_H class Wall { //... }; #endif // WALL_H
#ifndef BALL_H #define BALL_H #include "wall.h" class Ball { //... void foo(Wall& wall); }; #endif // BALL_H
Cheers, D Drmmr Please put [code][/code] tags around your code to preserve indentation and make it more readable. As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky
View Tag Cloud
Forum Rules