SOLVED
What really helped me was that I could #include headers in the .cpp file with out causing the redefined error.
I\'m new to C++ but I have some p
You have circular references here: Physics.h
includes GameObject.h
which includes Physics.h
. Your class Physics
uses GameObject*
(pointer) type so you don't need to include GameObject.h
in Physics.h
but just use forward declaration - instead of
#include "GameObject.h"
put
class GameObject;
Furthermore, put guards in each header file.