C::B 1.0rc2
save the following code as test.h
#ifndef test_h
#define test_h
#warning test.h included
#include test.h
#endif
Now include this file somewhere in your project and compile your project.
As you can see the file gets included endlessly because it ignores the #ifndef wrapper.
Looking at the generated makefile it uses single commands for each .cxx file as well.
Isn't there a way to compile in one go to prevent the multiple inclusions?
maybe the sample wasn't real enough since the error actualy occures when i have 2 header files like:
/test.h
#ifndef test_h
#define test_h
#warning test.h included
#include "h/test2.h"
#endif
/h/test2.h
#ifndef test2_h
#define test2_h
#warning test2.h included
#include "../test.h"
#endif
Will further investigate this when i have get the nightly build.