'AChar':is not a class or namespace name

I think you are confusing between Char and Character. To me it seems like you want to include “Character.h” and have ACharacter::StaticClass() assigned to your DefaultPawnClass.