I have 8 header files in a cpp project, and some cross refer to each other:
ie
and the compiler is getting into an infinite recursive loop with these includes.
Is there any command options i can use to specify that a file should only be included once?
Thanks
ie
Code:
#include "Observer.h" in file "Subject.h" #include "Subject.h" in file "Observer.h"
Is there any command options i can use to specify that a file should only be included once?
Thanks
Comment