Can't create C++ project ( or use C++ )

Hi!
I’m having problems with projects that use C++.
I was having problem with projects that already used C++. So I tried to create FPS/C++ default project and I can’t even build it.

When I try to build from projects that I already created it takes > 20 minutes to build.

My computer:
Intel(R) Core™ i5-9300H CPU @ 2.40GHz, 2400 Mhz
Memory: 8,00 GB
Virtual Memory: 19,3 GB
SSD: 120Gb
HDD: 1Tb ( UE and projects installed )

============================================

FPS/C++

Log

The project could not be compiled. Would you like to open it in Visual Studio?

Running D:/Epic Games/UE_5.0EA/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe Development Win64 -Project=“D:/Dev/FPSCPPExample/FPSCPPExample.uproject” -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Win64 using Manual SDK 10.0.19041.0
Creating makefile for FPSCPPExampleEditor (no existing makefile)
@progress push 5%
Parsing headers for FPSCPPExampleEditor
Running UnrealHeaderTool “D:\Dev\FPSCPPExample\FPSCPPExample.uproject” “D:\Dev\FPSCPPExample\Intermediate\Build\Win64\FPSCPPExampleEditor\Development\FPSCPPExampleEditor.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -abslog=“C:\Users\caiol\AppData\Local\UnrealBuildTool\Log_UHT.txt” -installed
Reflection code generated for FPSCPPExampleEditor in 24,4453959 seconds
@progress pop
Building FPSCPPExampleEditor…
Using Visual Studio 2019 14.29.30038 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037) and Windows 10.0.19041.0 SDK (C:\Program Files (x86)\Windows Kits\10).
[Adaptive Build] Excluded from FPSCPPExample unity file: FPSCPPExample.cpp, FPSCPPExampleCharacter.cpp, FPSCPPExampleGameMode.cpp, FPSCPPExampleHUD.cpp, FPSCPPExampleProjectile.cpp
Building 15 actions with 8 processes…
@progress ‘Compiling C++ source code…’ 0%
@progress ‘Compiling C++ source code…’ 7%
[1/15] Default.rc2
@progress ‘Compiling C++ source code…’ 13%
[2/15] SharedPCH.Engine.ShadowErrors.cpp
@progress ‘Compiling C++ source code…’ 20%
[3/15] FPSCPPExampleGameMode.gen.cpp
c1xx: error C3859: Failed to create virtual memory for PCH
c1xx: note: the system returned code 1455: The paging file is too small for this operation to complete.

c1xx: note: please visit Precompiled Header (PCH) issues and recommendations - C++ Team Blog for more details
c1xx: fatal error C1076: compiler limit: internal heap limit reached
@progress ‘Compiling C++ source code…’ 27%
[4/15] FPSCPPExampleProjectile.gen.cpp
c1xx: error C3859: Failed to create virtual memory for PCH
c1xx: note: the system returned code 1455: The paging file is too small for this operation to complete.

c1xx: note: please visit Precompiled Header (PCH) issues and recommendations - C++ Team Blog for more details
c1xx: fatal error C1076: compiler limit: internal heap limit reached
@progress ‘Compiling C++ source code…’ 33%
[5/15] FPSCPPExampleCharacter.gen.cpp
c1xx: error C3859: Failed to create virtual memory for PCH
c1xx: note: the system returned code 1455: The paging file is too small for this operation to complete.

c1xx: note: please visit Precompiled Header (PCH) issues and recommendations - C++ Team Blog for more details
c1xx: fatal error C1076: compiler limit: internal heap limit reached
@progress ‘Compiling C++ source code…’ 40%
[6/15] FPSCPPExample.cpp
@progress ‘Compiling C++ source code…’ 47%
[7/15] FPSCPPExample.init.gen.cpp
@progress ‘Compiling C++ source code…’ 53%
[8/15] FPSCPPExampleProjectile.cpp
@progress ‘Compiling C++ source code…’ 60%
[9/15] FPSCPPExampleHUD.gen.cpp
@progress ‘Compiling C++ source code…’ 67%
[10/15] FPSCPPExampleGameMode.cpp
@progress ‘Compiling C++ source code…’ 73%
[11/15] FPSCPPExampleHUD.cpp
@progress ‘Compiling C++ source code…’ 80%
[12/15] FPSCPPExampleCharacter.cpp

============================================

Custom Project ( Build.cpp was the only file that I changed )

Log

‘Error_UBTMissing’ is not recognized as an internal or external command, operable program or batch file.

‘MyProjectEditor’ is not recognized as an internal or external command, operable program or batch file.

‘“D:\Epic Games\UE_5.0EA\Engine\Build\BatchFiles\GetDotnetPath.bat”’ is not recognized as an internal or external command, operable program or batch file.

Win64 using Manual SDK 10.0.19041.0

Using ‘git status’ to determine working set for adaptive non-unity build (D:\Dev\MyProject).

Creating makefile for MyProjectEditor (no existing makefile)

Building MyProjectEditor…

Using Visual Studio 2019 14.29.30038 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037) and Windows 10.0.19041.0 SDK (C:\Program Files (x86)\Windows Kits\10).

[Adaptive Build] Excluded from MyProject unity file: Build.cpp

Building 6 actions with 8 processes…

[1/6] Build.cpp

[2/6] Module.MyProject.cpp

[3/6] Module.MyProject.gen.cpp

[4/6] UnrealEditor-MyProject-0009.lib

   Creating library D:\Dev\MyProject\Intermediate\Build\Win64\UnrealEditor\Development\MyProject\UnrealEditor-MyProject-0009.lib and object D:\Dev\MyProject\Intermediate\Build\Win64\UnrealEditor\Development\MyProject\UnrealEditor-MyProject-0009.exp

[5/6] UnrealEditor-MyProject-0009.dll

   Creating library D:\Dev\MyProject\Intermediate\Build\Win64\UnrealEditor\Development\MyProject\UnrealEditor-MyProject-0009.suppressed.lib and object D:\Dev\MyProject\Intermediate\Build\Win64\UnrealEditor\Development\MyProject\UnrealEditor-MyProject-0009.suppressed.exp

[6/6] MyProjectEditor.target

Total time in Parallel executor: 1384,39 seconds

Total execution time: 1483,35 seconds

============================================

Could someone help me?
Thank you!!

Hi @SolidSk

The message is same over and over. Add a 32GB page file.
Open Control Panel from Search bar → Advanced setting and add 32000 MB page file


Then restart the PC to install to use it. Then retry
The 20 minutes is reasonable after all you only have 8GB ram Memory and slow processor.
The recommended is 32GB RAM and 32GB paging file

In UE 5.5 onwards users are suggesting 64GB paging file, especially when building source UE 5.5
and Twin Motion 2025

4 Likes
"Checking global shaders for platform Windows" stuck forever
Visual Studio 2022 is 64 bit and compiles and runs UE 5.0 EA approximately 20% FASTER
Why is UE looking on the D:\ drive? It's causing crashes
UATHelper: Packaging (Windows): BUILD FAILED PackagingResults: Error: Unknown Error
Can´t enable nanite for more than 12287 assets
Out of Virtual Memory allocating a rendering resource crash
Building Light Causes Unreal Editor to Crash, Freezes At Exporting Light Data 100%
Can't launch Fortnite separately if UEFN is running since this update
Can't launch Fortnite separately if UEFN is running since this update
UEFN Project crash at 91%
TMNT City Sample - Broken
UEFN Memory Leak
IK Retargeter Causing UEFN To Crash
"The application has hung and will now close. We apologize for the inconvenience."
Video memory has been exhausted
Playing custom made island causes system crash
I urgently need help. This is very strange, and It won't let me test the game, it just kicks me back to lobby.
Out of memory crash UEFN - Never seen this before
UEFN Keeps crashing whenever i open a project
Windows Crash while using UEFN
5.6 Metahuman Creator Assembly Constant Crashing Memory Limit Reached?
Unreal Crash
5.6 Metahuman Creator Assembly Constant Crashing Memory Limit Reached?
When you want to exit the animation page of the widget blueprint, UEFN crash
Players Get “Errors in Your Installation” Message When Loading Into Rocket Wars (Requires Full Reinstall)
[BUG] UEFN Crashes Every Time I Enter Landscape Mode
[PRI 0] 2 Windows black error screens when interacting with UEFN, after last update, within a span of an hour
IK Retargeter Causing UEFN To Crash
Video memory has been exhausted
Audit Tools Crash UEFN
Ue5.6 crashe when I try to full rig metahuman
[CRITICAL] UEFN editor has issues on clicking
Ue5 BsODing after Extended Use
Unreal Engine 5.3 Released
Can´t enable nanite for more than 12287 assets
UE 5.3.2, crashes everytime i try to open this file https://shorturl.at/ilnAM
Unreal Engine 5.2.1 crashing always on migrate assets
Getting a bluescreen crash on importing large .uasset files
Unreal keeps getting crashed while rendering
Fatal error: Twinmotion looks for paging file on a drive that does note exist
[UE5.2, Bug report] Editor crash when PC is idle for a while. Out of memory.

Thank you @Jimbohalo10 !

The only thing I don’t understand now is why a change to a single file is building the entire project.
But with the increase in virtual memory I didn’t see the message. Thank you!

Building Lightning to big open world maps is heavy in my setup I used 80gb of ram and only could build lightning with that ram I tried with less and I couldn’t the recommended specs of ram to Unreal Engine at the moment are 64Gb of Ram.

Tried this, the computer started to blackout

hi @davidpkami ,
The PC Windows system probably needs checking/repair

Solved - Fortnite crashes Windows system needs to be checked/repaired

UEFN blanks screen maybe Checking/repair is a blank black screen sometime the status line at the bottom of page can be seen due to changed setting.

Go to Windows → Load Layout → Load default Layout

I tried this fix and sometimes when opening UEFN the PC is totally black out. I can not do anything. All screens all black and I need to restart it.

I will back again to the older Memory configuration. This fix was far worse than the original problem

This is a Nvidia driver problem
Known issues with NVIDIA 576.02 drivers | Epic Developer Community