Reference MyPawn from MyWeapon C++

I am trying to create a weapon and attach it to “MyPawn”. I am getting the following error however:

12407-screenshot+(242).png

Below is my code for defining and attempting to implement “MyPawn”

ArenaRangedWeapon.h

protected:

	/** pawn owner */
	UPROPERTY(Transient)
	class ATheArenaCharacter* MyPawn;

ArenaRangedWeapon.cpp

void AArenaRangedWeapon::AttachMeshToPawn()
{
	if (MyPawn)
	{
		//DetachMeshFromPawn();

		FName AttachPoint = MyPawn->GetWeaponAttachPoint();
	}
}

Compiler have insufficient data about class ATheArenaCharacter. Remove “class” from ATheArenaCharacter pointer and add include to header file where you got this class declered (my guess is #include "TheArenaCharacter.h")

Additionally, if you run into a circular dependency problem, you can forward declare ATheArenaCharacter in your header, and include it in your cpp file.