code_junkie

Inclusion cycles in C header files

Nov 12th, 2011
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #ifndef __A_H
  2. #define __A_H
  3.  
  4. #include "b.h"
  5.  
  6. #endif // __A_H
  7.  
  8. #ifndef __B_H
  9. #define __B_H
  10.  
  11. #include "c.h"
  12.  
  13. #endif // __B_H
  14.  
  15. #ifndef __C_H
  16. #define __C_H
  17.  
  18. #include "a.h"
  19.  
  20. #endif // __C_H
  21.  
  22. gcc -E $(CFLAGS) -o foo.i foo.cpp
Add Comment
Please, Sign In to add comment