New c++ Project ue5.4.4

i startet a new c++ project in ue5.4.4 and added a player pawn class nothing else, tryed to compile it in visual studio 2022 and i get 13 critical erros and 998 warnings… all of them in engine based code and its write protected… what do i miss?

Make sure your project is set as the default startup project (it’s name should be in bold). You might be trying to compile UE5 instead of your game. Close all engine files, set your project as default and try compiling.