I have code in three files A.h, B.h and C.h
//A.h #include "B.h" using namespace SomeNamespace; ref class A { private: B^ b; }