Recommended Posts

my Application class contains an instance of the ModuleVideo, the thing is that sometimes at compile time my compiler tells me that ModuleVideo needs a reference which is strange as I have the proper #include "ModuleVideo.h" at the header of Aplication class

but heres the funny thing:

if I comment the class and recompile (gets me some more errors) and then I uncomment and try to recompile again EVERYTHING WORKS OK

Share this post

Link to post

Share on other sites

Now you are not reproducing the full source. We are not psychic - we cannot divine problems in code we cannot see. Does Common.h include either Application.h or ModuleVideo.h, directly or indirectly? What does Common.h have in it?

Share this post

Link to post

Share on other sites

Is the first file Common.h ?
If so, it's include guard is broken. After fixing it, I can make the thing compile.
(by the way, why is it including Application.h ?)

Looks like you removed too much code again. It's nice to simplify, so that we don't have to read pages and pages of code, but you have to keep the problem present (just test the simplified version before posting it).
Sometimes this process of simplifying will allow you to find the problem yourself.