View Single Post
Posts: 15 | Thanked: 4 times | Joined on Mar 2010 @ Germany
#7
I think you changed the name of your files did you? when quoting you named them list.h etc. the includes and also the error message say listwindow.h.
Do you perhaps have a copy of the old file in your dir? Thus the compiler not seeing the file you are changing?

Another nice problem that can come from copying pasting is the use of the same preprocessor symbol (I mean in the first two and the last line of a header file e.g. LISTWINDOW_H). If you use the SAME symbol name in two headers this can also lead to confusing errors.

In any way: you should use as least includes in a header file as possible in order to reduce compilation time.
In file history.h you do no need to include listwindow.h.
A simple forward declaration is sufficient: add "class ListWindow;" before the declaration of "class HistoryWindow ..." and remove the '#include "ListWindow.h"'.

Hope this helps.
best regards eichhofener.

PS: Share your program with us, when it is ready :-)
 

The Following User Says Thank You to oberndorfer For This Useful Post: