'AChar':is not a class or namespace name

What is the exact error you are getting ? I think the problem could be that UE has its own AChar class which deals with text input. You might be causing some conflict by using the same name.