'[Class name]' does not name a type in C++
I am programming a graph using a list of lists. For that, I have two classes, and each one of this classes has a pointer to another object of the same class and a pointer to the object of the second class. Here is the code: File V.h: #ifndef VERTICEPUNT_H #define VERTICEPUNT_H #include "A.cpp" typedef char E; class V { public: E etiqueta; V* siguiente; A* primera; //<- Error: 'A' does not name a type V(); ~V(); }; #endif // VERTICEPUNT_H File V.cpp: #include "V.h" V::V() { etiqueta = ' '; siguiente = 0; primera = 0; //<- Error: 'primera' was not declared in this scope } V::~V() { delete