Pointer to Incomplete Class

question 2


Hello I’m having a problem with the PlayerControllerRef it keeps giving me the pointer to incomplete class type is not allowed. I tried searching up solutions but couldn’t find anything on how to fix it, except for adding an include which I tried, but the error persists. In my header file, picture included I had to add class before APlayerController, other wise I got an error there too. If you need any more pictures or if there is a way to send the cpp file, please let me know. Thanks for the help! ~Travis

Does it go away eventually? Do you have problems compiling?

It does not go away, and yeah it doesn’t compile.

Could you provide the declaration of PlayerControllerRef as well as the compilation error?

Omw I’m so blind sometimes, when you had me look at my declaration and stuff, I notice I misspelled APlayerController as APlayerConroller in the header file and the cpp, its working now, sorry for wasting your time, this is why I need to triple check my coding some times “¯_(ツ)_/¯ “ I also noticed that I don’t need the class before APlayerController since it’s spelled right, man that should’ve given me my first clue.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms