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

2 Likes

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.