UE5-02 Problem with creating C++ project in Unreal Engine 5.0.2: Compile Failed

I am receiving an error message when creating a new C++ based project stating that the project could not be compiled and to attempt to open it in Visual Studio.

Running C:/UE_5.0/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe Development Win64 -Project=“C:/Users/creol/Documents/Unreal Projects/ShifterGame/ShifterGame.uproject” -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Log file: C:\Users\creol\AppData\Local\UnrealBuildTool\Log.txt
Creating makefile for ShifterGameEditor (no existing makefile)
@progress push 5%
Parsing headers for ShifterGameEditor
Running UnrealHeaderTool “C:\Users\creol\Documents\Unreal Projects\ShifterGame\ShifterGame.uproject” “C:\Users\creol\Documents\Unreal Projects\ShifterGame\Intermediate\Build\Win64\ShifterGameEditor\Development\ShifterGameEditor.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -abslog=“C:\Users\creol\AppData\Local\UnrealBuildTool\Log_UHT.txt” -installed
Reflection code generated for ShifterGameEditor in 4.4699965 seconds
@progress pop
Building ShifterGameEditor…
Using Visual Studio 2019 14.29.30145 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133) and Windows 10.0.18362.0 SDK (C:\Program Files (x86)\Windows Kits\10).
[Adaptive Build] Excluded from ShifterGame unity file: ShifterGame.cpp, ShifterGameGameModeBase.cpp
Determining max actions to execute in parallel (4 physical cores, 8 logical cores)
Executing up to 4 processes, one per physical core
Building 9 actions with 4 processes…
[1/9] Resource Default.rc2
[2/9] Compile SharedPCH.Engine.ShadowErrors.cpp
C:\UE_5.0\Engine\Source\Runtime\Engine\Classes\Engine\World.h(478): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\UE_5.0\Engine\Source\Runtime\Engine\Classes\Engine\World.h(539): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\UE_5.0\Engine\Source\Runtime\Engine\Classes\Engine\World.h(573): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\UE_5.0\Engine\Source\Runtime\Engine\Classes\Engine\World.h(786): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\UE_5.0\Engine\Source\Runtime\Engine\Classes\Engine\World.h(935): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\UE_5.0\Engine\Source\Runtime\Engine\Classes\Engine\World.h(1017): error C2143: syntax error: missing ‘;’ before ‘’
C:\UE_5.0\Engine\Source\Runtime\Engine\Classes\Engine\World.h(1017): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\UE_5.0\Engine\Source\Runtime\Engine\Classes\Engine\World.h(1019): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

I am running this on Windows 10 with the newest Visual Studio version. What am I doing wrong? Attempting to open the project that didn’t compile will show an error message stating that I need to rebuild a module, and clicking Yes to do so shows another error message stating that it couldn’t be compiled.

Someone else suggested to reinstall the redistributionals and/or Visual Studio itself, but doing both didn’t fix the problem.

It seems like the Unreal Engine source code was somehow corrupted when it was downloaded, as when I re-installed it fully, it was suddenly able to work properly and build without throwing an error message. Unreal Engine 5 was able to launch the new project correctly this time around. So far the problem is solved, I’ll post again if I have more problems.

2 Likes