a.h: struct A { int a; }; b.h: struct B { struct A ba; }; c.c: #include "a.h" #include "b.h" </prev> compiler complains struct A in file b.h is undefined. I would think that by include a.h before b.h in c.c, it would see the struct A definition? I know I could make it compile by adding: struct A; in b.h but just want to know why it doesn't work the way above. Thanks, Anh
Thanks guys, I think I forgot to save the changes to "a.h". It works now.... "a.h" contains a lot of things including one struct needed for "b.h". I am more inclined to include headers from other development groups in .c rather than .h (person reasons). Anh