ok putting the b.h file in #ifndef ... #endif block solved the problem ...