I’m trying to declare a method in main.h like this:
void buildGraph(int gNum, Graph** gArray);
Where Graph is a class and I’m trying to pass a pointer to an array of pointers to Graph objects.
I get the error message: “Graph has not been declared”.
Even though I have #include “graph.h” at the top of the page and I’ve been using the
graph class plenty until now, so I know it works.
Any ideas?
Maybe the name Graph is in a namespace? What does that graph.h file say — is Graph at top-level, or inside a namespace statement?