error: Class has not been declared despite header inclusion, and the code compiling fine elsewhere
You seem to be saying that the code you are showing doesn’t actually produce the compiler error that you are having a problem with. So we can only guess. Here are some possibilities: You could have forgot to include problemclass.h from the file where you are using ProblemClass. You could have misspelled the name of … Read more