Qt 6.11 is out! See what's new in the release
blog
Include problem
General and Desktop
3
Posts
3
Posters
797
Views
1
Watching
-
Hello,
I have a problem by including classes. I try to include a class calls cfgreader in another class calls errhandler. Now the problem, the class errhandler requires as include the class cfgreader. For better understanding:
cfgreader.h
@#include "errhandler.h"@errhandler.h
@#include "cfgreader.h"@I don't know how I can search this on the Internet, so maybe someone can help me or can give me a clue?
Thank you!
Best regards,
TrusT -
Hi,
That's called circular dependencies
-
I would add your problem is circular dependencies,
your solution is forward declaration.