I need to include recursively class header files.
"Foo.h"
#ifndef FOO_H
#define FOO_H
#include "Bar.h"
class Foo {
public:
    Bar* barMember;
};
#endif
"Bar.h"
 #ifndef BAR_H
 #define BAR_H
 #include "Foo.h"
 class Bar {
 public:
     Foo* fooMember;
 };
 #endif
In this case I am getting errors like
'class' does not name a type
Consider that in this case Foo is the main class that includes a lot of other classes as a members. But with one member I need to have bidirectional connection.
So why do I have such problems?