Poitner to character

Cannot Compile a project with pointer to character :(.

Code samples:

bool DoTrace(FHitResult* RV_Hit, FCollisionQueryParams* RV_TraceParams, AHermesCharacter* Character);
float PlayerInteractionDistance;
void Initialize(UAnimInstance* AnimInstance, AHermesCharacter* Character);
AHermesCharacter* Character;

void AWeapon::Initialize(UAnimInstance* AnimInstance, AHermesCharacter* Character)
{
	this->AnimInstance = AnimInstance;
	this->Character = Character;

}

#include "HermesCharacter.h"
#include "Hermes.h"
#include "Weapon.h"
#include "MyProjectProjectile.h"
#include "Viewfinder.h"

Errors:

What about forward declaration in Weapon.h

class AHermesCharacter;

Then in Weapon.cpp you can declare include.
Besides if i remember correctly your main header which i believe is “Hermes.h” should be the first in cpp.

I did like u said but it doesnt change anything

I Solved problem by adding class keyword before all declarations :X?