How to call a function from another c++ class

I tried using the arrow and that didn’t work. It kept saying “AActor has no member named SomeFunction” even though the function is 100% in the other class.