How to set up Enhanced Input for APlayerController in C++?

did this project start as a C++ project or a blueprint project? was this a project that was started on a version before 5.2?

make sure that for the file invoking calls to UEnhancedInputComponent that it is in scope: #include "EnhnacedInputSubsystems.h" is in either the .h or the .cpp

what is the specific error that the crash report gives?