Possible Duplicate:
Is it possible to #Include in a “diamond heritage” stracture?
I'm building some program who looks like that:
"a.c" #includes "a.h" and #includes "b.h"
"b.c" #includes "b.h"
lets say I declare on a variable only in "b.h", named "var"
While tying to compile that on "cmd" with "nmake" I get the following error:
b.obj : error LNK2005: var already defined in a.obj
But I didn't define it on a.c or a.h, Only on b.h
What can cause this? thanks