Compile failed When the num of my cpp files greater than 28

Hello everyone, i have a strange question. When the num of cpp file less than 28 , it compile success, and i create one cpp file and the num greater than this number, it compile fail. If i del this or other cpp file, it compile success again. I think it is really really strange, because i didn’t change any other things, just create one cpp file by UE4 Editor, success will turn to fail. Could anybody help me? Thanks !

Show what the error message is when compiling.

1>------ Skipped Build: Project: UE4, Configuration: BuiltWithUnrealBuildTool Win32 ------
1>Project not selected to build for this solution configuration
2>------ Build started: Project: Forest, Configuration: Development_Editor x64 ------
2>Using ‘git status’ to determine working set for adaptive non-unity build (C:\Users\Qi\Documents\Unreal Projects\Animal-Forest).
2>Creating makefile for hot reloading ForestEditor (modules to compile have changed)
2>Compiling game modules for hot reload
2>Using Visual Studio 2017 14.16.27023 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023) and Windows 10.0.17763.0 SDK (C:\Program Files (x86)\Windows Kits\10).
2>[Adaptive unity build] Disabling PCH for excluded files. Set bAdaptiveUnityDisablesPCH to false in BuildConfiguration.xml to change this behavior.
2>[Adaptive unity build] Excluded from Forest unity file: CropActor.cpp, CropCellActor.cpp, TreeActor.cpp, UserCropProxy.cpp, UserItemProxy.cpp, PlayerCon.cpp
2>Building 4 actions with 4 processes…
2> [1/4] PlayerCon.cpp
2>C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Manager/UIManager.h(45): error C2065: ‘GEngine’: undeclared identifier
2> C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Player\PlayerCon.cpp(28): note: see reference to function template instantiation ‘T *AUIManager::GetUI<UMainGame>(void)’ being compiled
2> with
2>
2> T=UMainGame
2> ]
2> [2/4] CropCellActor.cpp
2>C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Actor\CropCellActor.cpp : warning C4828: The file contains a character starting at offset 0x69d that is illegal in the current source character set (codepage 65001).
2>C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Actor\CropCellActor.cpp : warning C4828: The file contains a character starting at offset 0x69e that is illegal in the current source character set (codepage 65001).
2>C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Actor\CropCellActor.cpp : warning C4828: The file contains a character starting at offset 0x6a4 that is illegal in the current source character set (codepage 65001).
2>C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Actor\CropCellActor.cpp : warning C4828: The file contains a character starting at offset 0x88f that is illegal in the current source character set (codepage 65001).
2>C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Actor\CropCellActor.cpp : warning C4828: The file contains a character starting at offset 0x893 that is illegal in the current source character set (codepage 65001).
2>C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Actor\CropCellActor.cpp : warning C4828: The file contains a character starting at offset 0x912 that is illegal in the current source character set (codepage 65001).
2>C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Actor\CropCellActor.cpp : warning C4828: The file contains a character starting at offset 0x913 that is illegal in the current source character set (codepage 65001).
2>C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Actor\CropCellActor.cpp : warning C4828: The file contains a character starting at offset 0x914 that is illegal in the current source character set (codepage 65001).
2>C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Actor\CropCellActor.cpp : warning C4828: The file contains a character starting at offset 0x915 that is illegal in the current source character set (codepage 65001).
2>C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Actor\CropCellActor.cpp : warning C4828: The file contains a character starting at offset 0x917 that is illegal in the current source character set (codepage 65001).
2>C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Actor\CropCellActor.cpp : warning C4828: The file contains a character starting at offset 0x918 that is illegal in the current source character set (codepage 65001).
2>C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Actor\CropCellActor.cpp : warning C4828: The file contains a character starting at offset 0x91a that is illegal in the current source character set (codepage 65001).
2>C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Actor\CropCellActor.cpp : warning C4828: The file contains a character starting at offset 0x91b that is illegal in the current source character set (codepage 65001).
2>C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Actor\CropCellActor.cpp : warning C4828: The file contains a character starting at offset 0x91d that is illegal in the current source character set (codepage 65001).
2>C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Actor\CropCellActor.cpp : warning C4828: The file contains a character starting at offset 0x920 that is illegal in the current source character set (codepage 65001).
2>C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Actor\CropCellActor.cpp : warning C4828: The file contains a character starting at offset 0x9e7 that is illegal in the current source character set (codepage 65001).
2>C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Actor\CropCellActor.cpp : warning C4828: The file contains a character starting at offset 0x9e8 that is illegal in the current source character set (codepage 65001).
2>C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Actor\CropCellActor.cpp : warning C4828: The file contains a character starting at offset 0x9e9 that is illegal in the current source character set (codepage 65001).
2>C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Actor\CropCellActor.cpp : warning C4828: The file contains a character starting at offset 0x9ec that is illegal in the current source character set (codepage 65001).
2>C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Actor\CropCellActor.cpp : warning C4828: The file contains a character starting at offset 0x9ed that is illegal in the current source character set (codepage 65001).
2>C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Actor\CropCellActor.cpp : warning C4828: The file contains a character starting at offset 0x9ee that is illegal in the current source character set (codepage 65001).
2>C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Actor\CropCellActor.cpp : warning C4828: The file contains a character starting at offset 0x9f0 that is illegal in the current source character set (codepage 65001).
2>C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Actor\CropCellActor.cpp : warning C4828: The file contains a character starting at offset 0x9f1 that is illegal in the current source character set (codepage 65001).
2>C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Actor\CropCellActor.cpp : warning C4828: The file contains a character starting at offset 0x9f4 that is illegal in the current source character set (codepage 65001).
2>C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Actor\CropCellActor.cpp : warning C4828: The file contains a character starting at offset 0xe99 that is illegal in the current source character set (codepage 65001).
2>C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Actor\CropCellActor.cpp : warning C4828: The file contains a character starting at offset 0xe9b that is illegal in the current source character set (codepage 65001).
2>C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Actor\CropCellActor.cpp : warning C4828: The file contains a character starting at offset 0xea3 that is illegal in the current source character set (codepage 65001).
2>C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Actor\CropCellActor.cpp : warning C4828: The file contains a character starting at offset 0xea4 that is illegal in the current source character set (codepage 65001).
2>C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Actor\CropCellActor.cpp : warning C4828: The file contains a character starting at offset 0xea5 that is illegal in the current source character set (codepage 65001).
2>C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Actor\CropCellActor.cpp : warning C4828: The file contains a character starting at offset 0xea6 that is illegal in the current source character set (codepage 65001).
2>C:\Program Files (x86)\Epic Games\UE_4.21\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectGlobals.h(1268): error C2027: use of undefined type ‘UStaticMesh’
2> C:\Program Files (x86)\Epic Games\UE_4.21\Engine\Source\Runtime\Engine\Classes\Kismet/GameplayStatics.h(33): note: see declaration of ‘UStaticMesh’
2> C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Source\Forest\Actor\CropCellActor.cpp(12): note: see reference to function template instantiation ‘T *LoadObject<UStaticMesh>(UObject *,const TCHAR *,const TCHAR *,uint32,UPackageMap *)’ being compiled
2> with
2>
2> T=UStaticMesh
2> ]
2>C:\Program Files (x86)\Epic Games\UE_4.21\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectGlobals.h(1268): error C3861: ‘StaticClass’: identifier not found
2>UnrealBuildTool : error : UBT ERROR: Failed to produce item: C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Binaries\Win64\UE4Editor-Forest-5984.dll
2> (see …/Programs/UnrealBuildTool/Log.txt for full exception trace)
2>Total build time: 12.05 seconds (Parallel executor: 0.00 seconds)
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command ““C:\Program Files (x86)\Epic Games\UE_4.21\Engine\Build\BatchFiles\Build.bat” ForestEditor Win64 Development “C:\Users\Qi\Documents\Unreal Projects\Animal-Forest\Forest\Forest.uproject” -WaitMutex -FromMsBuild” exited with code 5. Please verify that you have sufficient rights to run this command.
2>Done building project “Forest.vcxproj” – FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 1 skipped ==========

Sorry,here is the Output , I think UObjectGlobals.h is the Engine file , I don’t know why it is error, but if i del one my file it compile succeeded again

Oh,It’s my error, I should use ObjectFinder instead of LoadObject in a Construct Function, Thank you very much !