I have added a virtual function to AActor, why can't i compile?

did you write the function prototype in Actor.cpp?