Hallo,

I have been stuggeling for a while now to get my project to work. I tried to add my Vector2D class to one of the others, but that turned out to create a lot of unforeseen problems.

I have #ifndef in front of all by header files, but this still happens. Any ideas on what I am doing wrong?

Here is what the evil compiler screams at me:
>Linking...
1>Object.obj : error LNK2005: "int __cdecl Dot(class Vector2D,class Vector2D)" (?Dot@@YAHVVector2D@@0@Z) already defined in BulletMgr.obj
1>Object.obj : error LNK2005: "public: __thiscall BoundingBox::BoundingBox(int,int,int,int)" (??0BoundingBox@@QAE@HHHH@Z) already defined in BulletMgr.obj
1>Object.obj : error LNK2005: "public: __thiscall BoundingBox::BoundingBox(void)" (??0BoundingBox@@QAE@XZ) already defined in BulletMgr.obj
1>Object.obj : error LNK2005: "public: int __thiscall BoundingBox::getWidth(void)" (?getWidth@BoundingBox@@QAEHXZ) already defined in BulletMgr.obj
1>Object.obj : error LNK2005: "public: int __thiscall BoundingBox::getHeight(void)" (?getHeight@BoundingBox@@QAEHXZ) already defined in BulletMgr.obj
1>Object.obj : error LNK2005: "public: int __thiscall BoundingBox::getXpos(void)" (?getXpos@BoundingBox@@QAEHXZ) already defined in BulletMgr.obj
1>Object.obj : error LNK2005: "public: int __thiscall BoundingBox::getYpos(void)" (?getYpos@BoundingBox@@QAEHXZ) already defined in BulletMgr.obj
1>Object.obj : error LNK2005: "public: struct vertex __thiscall BoundingBox::getVertex(int)" (?getVertex@BoundingBox@@QAE?AUvertex@@H@Z) already defined in BulletMgr.obj
1>Object.obj : error LNK2005: "public: void __thiscall BoundingBox::rotate(int)" (?rotate@BoundingBox@@QAEXH@Z) already defined in BulletMgr.obj
1>Object.obj : error LNK2005: "public: void __thiscall BoundingBox::move(int,int)" (?move@BoundingBox@@QAEXHH@Z) already defined in BulletMgr.obj
1>Object.obj : error LNK2005: "public: class BoundingBox __thiscall BoundingBox::allignToAxis(void)" (?allignToAxis@BoundingBox@@QAE?AV1@XZ) already defined in BulletMgr.obj
1>Object.obj : error LNK2005: "public: bool __thiscall BoundingBox:ointIntersection(struct vertex &)" (?pointIntersection@BoundingBox@@QAE_NAAUvertex@@@ Z) already defined in BulletMgr.obj
1>Object.obj : error LNK2005: "public: class Rectangle2D __thiscall BoundingBox::convertToRec(void)" (?convertToRec@BoundingBox@@QAE?AVRectangle2D@@XZ) already defined in BulletMgr.obj
1>Sprite.obj : error LNK2005: "int __cdecl Dot(class Vector2D,class Vector2D)" (?Dot@@YAHVVector2D@@0@Z) already defined in BulletMgr.obj
1>Sprite.obj : error LNK2005: "public: __thiscall BoundingBox::BoundingBox(int,int,int,int)" (??0BoundingBox@@QAE@HHHH@Z) already defined in BulletMgr.obj
1>Sprite.obj : error LNK2005: "public: __thiscall BoundingBox::BoundingBox(void)" (??0BoundingBox@@QAE@XZ) already defined in BulletMgr.obj
1>Sprite.obj : error LNK2005: "public: int __thiscall BoundingBox::getWidth(void)" (?getWidth@BoundingBox@@QAEHXZ) already defined in BulletMgr.obj
1>Sprite.obj : error LNK2005: "public: int __thiscall BoundingBox::getHeight(void)" (?getHeight@BoundingBox@@QAEHXZ) already defined in BulletMgr.obj
1>Sprite.obj : error LNK2005: "public: int __thiscall BoundingBox::getXpos(void)" (?getXpos@BoundingBox@@QAEHXZ) already defined in BulletMgr.obj
1>Sprite.obj : error LNK2005: "public: int __thiscall BoundingBox::getYpos(void)" (?getYpos@BoundingBox@@QAEHXZ) already defined in BulletMgr.obj
1>Sprite.obj : error LNK2005: "public: struct vertex __thiscall BoundingBox::getVertex(int)" (?getVertex@BoundingBox@@QAE?AUvertex@@H@Z) already defined in BulletMgr.obj
1>Sprite.obj : error LNK2005: "public: void __thiscall BoundingBox::rotate(int)" (?rotate@BoundingBox@@QAEXH@Z) already defined in BulletMgr.obj
1>Sprite.obj : error LNK2005: "public: void __thiscall BoundingBox::move(int,int)" (?move@BoundingBox@@QAEXHH@Z) already defined in BulletMgr.obj
1>Sprite.obj : error LNK2005: "public: class BoundingBox __thiscall BoundingBox::allignToAxis(void)" (?allignToAxis@BoundingBox@@QAE?AV1@XZ) already defined in BulletMgr.obj
1>Sprite.obj : error LNK2005: "public: bool __thiscall BoundingBox:ointIntersection(struct vertex &)" (?pointIntersection@BoundingBox@@QAE_NAAUvertex@@@ Z) already defined in BulletMgr.obj
1>Sprite.obj : error LNK2005: "public: class Rectangle2D __thiscall BoundingBox::convertToRec(void)" (?convertToRec@BoundingBox@@QAE?AVRectangle2D@@XZ) already defined in BulletMgr.obj
1>Visualisation.obj : error LNK2005: "int __cdecl Dot(class Vector2D,class Vector2D)" (?Dot@@YAHVVector2D@@0@Z) already defined in BulletMgr.obj
1>Visualisation.obj : error LNK2005: "public: __thiscall BoundingBox::BoundingBox(int,int,int,int)" (??0BoundingBox@@QAE@HHHH@Z) already defined in BulletMgr.obj
1>Visualisation.obj : error LNK2005: "public: __thiscall BoundingBox::BoundingBox(void)" (??0BoundingBox@@QAE@XZ) already defined in BulletMgr.obj
1>Visualisation.obj : error LNK2005: "public: int __thiscall BoundingBox::getWidth(void)" (?getWidth@BoundingBox@@QAEHXZ) already defined in BulletMgr.obj
1>Visualisation.obj : error LNK2005: "public: int __thiscall BoundingBox::getHeight(void)" (?getHeight@BoundingBox@@QAEHXZ) already defined in BulletMgr.obj
1>Visualisation.obj : error LNK2005: "public: int __thiscall BoundingBox::getXpos(void)" (?getXpos@BoundingBox@@QAEHXZ) already defined in BulletMgr.obj
1>Visualisation.obj : error LNK2005: "public: int __thiscall BoundingBox::getYpos(void)" (?getYpos@BoundingBox@@QAEHXZ) already defined in BulletMgr.obj
1>Visualisation.obj : error LNK2005: "public: struct vertex __thiscall BoundingBox::getVertex(int)" (?getVertex@BoundingBox@@QAE?AUvertex@@H@Z) already defined in BulletMgr.obj
1>Visualisation.obj : error LNK2005: "public: void __thiscall BoundingBox::rotate(int)" (?rotate@BoundingBox@@QAEXH@Z) already defined in BulletMgr.obj
1>Visualisation.obj : error LNK2005: "public: void __thiscall BoundingBox::move(int,int)" (?move@BoundingBox@@QAEXHH@Z) already defined in BulletMgr.obj
1>Visualisation.obj : error LNK2005: "public: class BoundingBox __thiscall BoundingBox::allignToAxis(void)" (?allignToAxis@BoundingBox@@QAE?AV1@XZ) already defined in BulletMgr.obj
1>Visualisation.obj : error LNK2005: "public: bool __thiscall BoundingBox:ointIntersection(struct vertex &)" (?pointIntersection@BoundingBox@@QAE_NAAUvertex@@@ Z) already defined in BulletMgr.obj
1>Visualisation.obj : error LNK2005: "public: class Rectangle2D __thiscall BoundingBox::convertToRec(void)" (?convertToRec@BoundingBox@@QAE?AVRectangle2D@@XZ) already defined in BulletMgr.obj
1>main.obj : error LNK2005: "int __cdecl Dot(class Vector2D,class Vector2D)" (?Dot@@YAHVVector2D@@0@Z) already defined in BulletMgr.obj
1>main.obj : error LNK2005: "public: __thiscall BoundingBox::BoundingBox(int,int,int,int)" (??0BoundingBox@@QAE@HHHH@Z) already defined in BulletMgr.obj
1>main.obj : error LNK2005: "public: __thiscall BoundingBox::BoundingBox(void)" (??0BoundingBox@@QAE@XZ) already defined in BulletMgr.obj
1>main.obj : error LNK2005: "public: int __thiscall BoundingBox::getWidth(void)" (?getWidth@BoundingBox@@QAEHXZ) already defined in BulletMgr.obj
1>main.obj : error LNK2005: "public: int __thiscall BoundingBox::getHeight(void)" (?getHeight@BoundingBox@@QAEHXZ) already defined in BulletMgr.obj
1>main.obj : error LNK2005: "public: int __thiscall BoundingBox::getXpos(void)" (?getXpos@BoundingBox@@QAEHXZ) already defined in BulletMgr.obj
1>main.obj : error LNK2005: "public: int __thiscall BoundingBox::getYpos(void)" (?getYpos@BoundingBox@@QAEHXZ) already defined in BulletMgr.obj
1>main.obj : error LNK2005: "public: struct vertex __thiscall BoundingBox::getVertex(int)" (?getVertex@BoundingBox@@QAE?AUvertex@@H@Z) already defined in BulletMgr.obj
1>main.obj : error LNK2005: "public: void __thiscall BoundingBox::rotate(int)" (?rotate@BoundingBox@@QAEXH@Z) already defined in BulletMgr.obj
1>main.obj : error LNK2005: "public: void __thiscall BoundingBox::move(int,int)" (?move@BoundingBox@@QAEXHH@Z) already defined in BulletMgr.obj
1>main.obj : error LNK2005: "public: class BoundingBox __thiscall BoundingBox::allignToAxis(void)" (?allignToAxis@BoundingBox@@QAE?AV1@XZ) already defined in BulletMgr.obj
1>main.obj : error LNK2005: "public: bool __thiscall BoundingBox:ointIntersection(struct vertex &)" (?pointIntersection@BoundingBox@@QAE_NAAUvertex@@@ Z) already defined in BulletMgr.obj
1>main.obj : error LNK2005: "public: class Rectangle2D __thiscall BoundingBox::convertToRec(void)" (?convertToRec@BoundingBox@@QAE?AVRectangle2D@@XZ) already defined in BulletMgr.obj
1>Debug/HelloWorld.exe : fatal error LNK1169: one or more multiply defined symbols found