|i'm stuck with this problem
well i made this header "shapes.h"
#define maxC 80
#define maxV 25
#define maxP 150
sry for lame data structure but had to take like that
i've included it in my main.cpp
and thr's another header "simulate.h"
that needs to be included in "main.cpp"
now the problem is i have to include "shapes.h" in "simulate.h" too.. but when i do that i get error
1>simulate.obj : error LNK2005: "struct polygon pg" (?pg@@3Upolygon@@A) already defined in main.obj
1>simulate.obj : error LNK2005: "struct circles cl" (?cl@@3Ucircles@@A) already defined in main.obj
1>editor/Debug\editor.exe : fatal error LNK1169: one or more multiply defined symbols found
i tried removing "shapes.h" from "main.cpp" with "simulate.h" included in "main.cpp" and "shapes.h" included in "simulate.h" but still get the same error.
please help... i'm using Visual Studio 2008
modified on Friday, April 2, 2010 3:57 PM