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

**URL:** <https://forums.unrealengine.com/t/cant-create-c-project-or-use-c/238169>\
**Category:** Feedback & Requests\
**Tags:** General, unreal-engine, Performance, UE5-0\
**Created:** [June 30, 2021, 4:25am UTC](https://forums.unrealengine.com/t/cant-create-c-project-or-use-c/238169 "2021-06-30T04:25:57Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![SolidSk](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/solidsk/32/1194513_2.png) [@SolidSk](https://forums.unrealengine.com/u/SolidSk)\
**Post date:** [June 30, 2021, 4:25am UTC](https://forums.unrealengine.com/t/cant-create-c-project-or-use-c/238169/1 "2021-06-30T04:25:57Z")

</div>

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](https://aka.ms/pch-help) 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](https://aka.ms/pch-help) 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](https://aka.ms/pch-help) 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!!

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [June 30, 2021, 7:02am UTC](https://forums.unrealengine.com/t/cant-create-c-project-or-use-c/238169/2 "2021-06-30T07:02:44Z")

</div>

Hi @SolidSk

> [@SolidSk](#):
>
> The paging file is too small for this operation to complete.

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

 ![Win11PagefileAdvanced](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/8/5/085d697605526969e6830071d94310579fb18a8c.png)  
 ![PagefileUpdate](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/b/a/cbaa731978d25e58c7b2d63bbf61f5fbebfd3a72.png)

 ![Screenshot (21)](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/5/658088a91b2d4b33a7ec12e0369b2536b15d0ca8.png)

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 64GB paging file 64000

In UE 5.5 onwards users are suggesting 64GB paging file, especially when building source UE 5.5  
and Twin Motion 2025 and (128000) 128GB for UEFN and Fortnite running together

---

<div class="post-metadata">

**Author:** ![SolidSk](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/solidsk/32/1194513_2.png) [@SolidSk](https://forums.unrealengine.com/u/SolidSk)\
**Post date:** [July 1, 2021, 12:48am UTC](https://forums.unrealengine.com/t/cant-create-c-project-or-use-c/238169/3 "2021-07-01T00:48:41Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![MoStudios](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MoStudios](https://forums.unrealengine.com/u/MoStudios)\
**Post date:** [August 3, 2023, 1:47am UTC](https://forums.unrealengine.com/t/cant-create-c-project-or-use-c/238169/4 "2023-08-03T01:47:38Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![davidpkami](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/davidpkami/32/1040403_2.png) [@davidpkami](https://forums.unrealengine.com/u/davidpkami)\
**Post date:** [April 23, 2025, 8:27am UTC](https://forums.unrealengine.com/t/cant-create-c-project-or-use-c/238169/5 "2025-04-23T08:27:17Z")

</div>

Tried this, the computer started to blackout

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [April 23, 2025, 9:41am UTC](https://forums.unrealengine.com/t/cant-create-c-project-or-use-c/238169/6 "2025-04-23T09:41:00Z")

</div>

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

[Solved - Fortnite crashes Windows system needs to be checked/repaired](https://forums.unrealengine.com/t/fortnite-crashes-pc-to-bluescreen/2470044/4)

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

---

<div class="post-metadata">

**Author:** ![davidpkami](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/davidpkami/32/1040403_2.png) [@davidpkami](https://forums.unrealengine.com/u/davidpkami)\
**Post date:** [April 24, 2025, 8:16am UTC](https://forums.unrealengine.com/t/cant-create-c-project-or-use-c/238169/7 "2025-04-24T08:16:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [May 11, 2025, 9:57pm UTC](https://forums.unrealengine.com/t/cant-create-c-project-or-use-c/238169/8 "2025-05-11T21:57:24Z")

</div>

> [@davidpkami](#):
>
> 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.

This is a Nvidia driver problem  
[Known issues with NVIDIA 576.02 drivers | Epic Developer Community](https://dev.epicgames.com/community/learning/knowledge-base/pBjb/twinmotion-known-issues-with-nvidia-576-02-drivers-on-rtx-50-series-gpus)

Try the -dx11 in Epic Games Launcher, select Unreal Engine Fortnite (UEFN) click 3 dots

Select Manage scroll down to Launch click slider to left box opens enter

-dx11

Click ok, Select Manage scroll down to Launch, check -dx11 is in box

If this works it means that Direct X12 is not supported on your PC, update your graphics driver
