SetOwner in C++

Thanx for your response but it doesn’t work because if I do so, there is a circular dependancy .

So I made this declaration :
class ABaseCharacter;

I’m trying to do the same that in shooter example but for me it doesn’t work.