Upon including the .h of another class in my controller, I get these errors:
warning LNK4006: “protected: virtual void __cdecl ACBPlayerController::BeginPlay(void)” (?BeginPlay@ACBPlayerController@@MEAAXXZ) already defined in CBCarriageActor.cpp.obj; second definition ignored
error LNK2005: “protected: virtual void __cdecl ACBPlayerController::BeginPlay(void)” (?BeginPlay@ACBPlayerController@@MEAAXXZ) already defined in CBCarriageActor.cpp.obj
If i remove the .h the error disappears, but I can’t understand why this error is happening. Does anyone know?