# Unable to compile a blank C++ Project (UE5.3.2)

**URL:** <https://forums.unrealengine.com/t/unable-to-compile-a-blank-c-project-ue5-3-2/1732095>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [March 5, 2024, 6:03pm UTC](https://forums.unrealengine.com/t/unable-to-compile-a-blank-c-project-ue5-3-2/1732095 "2024-03-05T18:03:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SwipesLogJack\_T](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SwipesLogJack\_T](https://forums.unrealengine.com/u/SwipesLogJack_T)\
**Post date:** [March 5, 2024, 6:03pm UTC](https://forums.unrealengine.com/t/unable-to-compile-a-blank-c-project-ue5-3-2/1732095/1 "2024-03-05T18:03:11Z")

</div>

I have been unable to use UE5 with Visual Studio 2022, since I have installed the apps on a new system. Whenever I try to build any project, even a freshly made, Blank template C++ Project won’t get as far as even opening the editor, telling me that the project’s main module failed to compile before closing Unreal. My Error Log is below. If someone can tell me what I am doing wrong, I’d love to be able to work in this app again.

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

Running C:/Users/BASwi/Documents/Unreal Engine/UE_5.3/Engine/Build/BatchFiles/Build.bat Development Win64 -Project="D:/Coding/UE5/BlankProject/BlankProject.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Using bundled DotNet SDK version: 6.0.302
Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" Development Win64 -Project="D:/Coding/UE5/BlankProject/BlankProject.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Log file: C:\Users\BASwi\AppData\Local\UnrealBuildTool\Log.txt
Creating makefile for BlankProjectEditor (no existing makefile)
@progress push 5%
Parsing headers for BlankProjectEditor
  Running Internal UnrealHeaderTool D:\Coding\UE5\BlankProject\BlankProject.uproject D:\Coding\UE5\BlankProject\Intermediate\Build\Win64\BlankProjectEditor\Development\BlankProjectEditor.uhtmanifest -WarningsAsErrors -installed
Total of 0 written
Reflection code generated for BlankProjectEditor in 2.1394979 seconds
@progress pop
Building BlankProjectEditor...
Using Visual Studio 2022 14.39.33521 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519) and Windows 10.0.22621.0 SDK (C:\Program Files (x86)\Windows Kits\10).
Determining max actions to execute in parallel (6 physical cores, 12 logical cores)
  Executing up to 6 processes, one per physical core
  Requested 1.5 GB memory per action, 835.76 MB available: limiting max parallel actions to 1
------ Building 6 action(s) started ------
[1/6] Compile [x64] SharedPCH.Engine.Cpp20.cpp
C:\Users\BASwi\Documents\Unreal Engine\UE_5.3\Engine\Source\predefined C++ types (compiler internal)(420): error C2248: 'FHazardPointerCollection::FHazardRecord::FHazardRecord': cannot access private member declared in class 'FHazardPointerCollection::FHazardRecord'
C:\Users\BASwi\Documents\Unreal Engine\UE_5.3\Engine\Source\Runtime\Core\Public\Experimental\Containers\HazardPointer.h(86): note: see declaration of 'FHazardPointerCollection::FHazardRecord::FHazardRecord'
C:\Users\BASwi\Documents\Unreal Engine\UE_5.3\Engine\Source\Runtime\Core\Public\Experimental\Containers\HazardPointer.h(77): note: see declaration of 'FHazardPointerCollection::FHazardRecord'
C:\Users\BASwi\Documents\Unreal Engine\UE_5.3\Engine\Source\predefined C++ types (compiler internal)(420): note: the template instantiation context (the oldest one first) is
C:\Users\BASwi\Documents\Unreal Engine\UE_5.3\Engine\Source\Runtime\Core\Public\Experimental\Containers\HazardPointer.h(133): note: see reference to function template instantiation 'void __builtin_array_init_helper<FHazardPointerCollection::FHazardRecord>(_T *,size_t) noexcept(<expr>)' being compiled
        with
        [
            _T=FHazardPointerCollection::FHazardRecord
        ]
[2/6] Resource Default.rc2
Total time in Parallel executor: 26.67 seconds
Total execution time: 34.95 seconds

```

I should specify that opening the project in Visual Studio does not allow me to build this project.

---

<div class="post-metadata">

**Author:** ![hynzla](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hynzla](https://forums.unrealengine.com/u/hynzla)\
**Post date:** [March 13, 2024, 9:47pm UTC](https://forums.unrealengine.com/t/unable-to-compile-a-blank-c-project-ue5-3-2/1732095/2 "2024-03-13T21:47:01Z")

</div>

I have the same issue. I just uninstalled then reinstalled VS 2022, following [this guide](https://dev.epicgames.com/community/learning/tutorials/XjvJ/unreal-engine-ue-5-1-visual-studio-2022-installation-guide).  
Can’t create a new C++ project and get this same error message.  
Did you solve it?

---

<div class="post-metadata">

**Author:** ![SgtFlexxx](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sgtflexxx/32/1194634_2.png) [@SgtFlexxx](https://forums.unrealengine.com/u/SgtFlexxx)\
**Post date:** [March 13, 2024, 11:16pm UTC](https://forums.unrealengine.com/t/unable-to-compile-a-blank-c-project-ue5-3-2/1732095/3 "2024-03-13T23:16:34Z")

</div>

> [@SwipesLogJack\_T](#):
>
> `error C2248: 'FHazardPointerCollection::FHazardRecord::FHazardRecord': cannot access private member declared in class 'FHazardPointerCollection::FHazardRecord'`

This thread, and this post in particular sounds like the fix

> [@Failure to create a new project: "cannot access private member declared in class 'FHazardPointerCollection::FHazardRecord'"](https://forums.unrealengine.com/t/failure-to-create-a-new-project-cannot-access-private-member-declared-in-class-fhazardpointercollection-fhazardrecord/1548295/17):
>
> Just to wrap up this thread you have three options. I would do them in this order if you can. Option 1: Rollback to 17.8.x in Visual Studio How To: Downsides: If you did not install 17.8 you cannot roll back to it. Option 2: Update to Preview Version How To: Same as above but select “Update” Settings and select Preview instead of current. Downsides: Previews can be less stable so it may have conflicts with your particular project. (This is unlikely though) Option 3: Make t…
