Hi there, I’ve been used just Blueprint in Unreal for a while.
Today I tried to switch my Unreal proejct with C++ Scripts, so I prepared and set all of features or workload in Visual Studio Installer.
After that work, I made my first project in Unreal Engine but it didn’t work.
The error message is down below.
The project could not be compiled. Would you like to open it in Visual Studio?
Running D:/UE_5.3/Engine/Build/BatchFiles/Build.bat Development Win64 -Project=“C:/Users/admin/Documents/UnrealProject/MyProject3/MyProject3.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=“C:/Users/admin/Documents/UnrealProject/MyProject3/MyProject3.uproject” -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Log file: C:\Users\admin\AppData\Local\UnrealBuildTool\Log.txt
Creating makefile for MyProject3Editor (no existing makefile) @progress push 5%
Parsing headers for MyProject3Editor
Running Internal UnrealHeaderTool C:\Users\admin\Documents\UnrealProject\MyProject3\MyProject3.uproject C:\Users\admin\Documents\UnrealProject\MyProject3\Intermediate\Build\Win64\MyProject3Editor\Development\MyProject3Editor.uhtmanifest -WarningsAsErrors -installed
Total of 14 written
Reflection code generated for MyProject3Editor in 0.8869179 seconds @progress pop
Building MyProject3Editor…
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 (8 physical cores, 16 logical cores)
Executing up to 8 processes, one per physical core
------ Building 19 action(s) started ------
[1/19] Resource Default.rc2
[2/19] Compile [x64] SharedPCH.Engine.Cpp20.cpp
D:\UE_5.3\Engine\Source\predefined C++ types (compiler internal)(420): error C2248: ‘FHazardPointerCollection::FHazardRecord::FHazardRecord’: private ??(‘FHazardPointerCollection::FHazardRecord’ Ŭ??? ??? ???? ???ϴ?
D:\UE_5.3\Engine\Source\Runtime\Core\Public\Experimental\Containers\HazardPointer.h(86): note: ‘FHazardPointerCollection::FHazardRecord::FHazardRecord’ ??? ???ʽÿ?
D:\UE_5.3\Engine\Source\Runtime\Core\Public\Experimental\Containers\HazardPointer.h(77): note: ‘FHazardPointerCollection::FHazardRecord’ ??? ???ʽÿ?
D:\UE_5.3\Engine\Source\predefined C++ types (compiler internal)(420): note: ??? ???ȭ ???Ʈ(??? ???ȭ ???Ʈ)??
D:\UE_5.3\Engine\Source\Runtime\Core\Public\Experimental\Containers\HazardPointer.h(133): note: ???Ǵ??? ???ȭ ‘void __builtin_array_init_helperFHazardPointerCollection::FHazardRecord(_T *,size_t) noexcept()’?? ??? Ȯ???
with
[
_T=FHazardPointerCollection::FHazardRecord
]
Total time in Parallel executor: 15.29 seconds
Total execution time: 33.60 seconds
First make sure that installed visual studio has proper version (same that is required by unreal engine).
Then make sue all dependencies installed with visual studio match version you need.
I had similar errors because i installed newest visual studio over older one. And while visual studio reported required version, some modules were picked from old one.
Solution was to uninstall all versions of visual studio, and do fresh install of what unreal wanted.
Also if you want faster replies, try chatGPT. Yes it can help, if you copy exact error line, and ask how to fix it gives mostly correct hints.
So chatGPT is much faster than asking here and hoping somebody who knows exact reason for error reads your question.
Edit:
After asking oracle (aka chatGPT). It gave generic answer only.
However this suggest you have some version mismatch in C++, and unreal code.
So make sure:
your visual studio is correct version (one that unreal wants)
all your SDK and dependencies in Vsiual Studio Installer match that same version
update Unreal engine
Fastest solution for all that is to reinstall Visual Studio (make sure you have only required version of it installed). If reinstalling VS does not help, reinstall unreal. Alternative is digging into instals and manually making sure all USED components are correct.
I had similar problems, i had msvc 2019 and msvc 2023 installed, while build tool started compile in msvc 2023, some modules were picked from msvc 2019, it was a mess.
And another thought:
Are you sure you are compiling your project or whole engine+editor source?
Make sure to build only your game
I reinstalled Visual Studio and it works now, but when i create a new project with c++ there is an error at the beginning. When i open the project with Visual Studio and build it again it works!
With new projects you need to create *.sln file from that project file.
Then in visual studio build your game project not whole unreal+editor+project thing.
Also consider getting RIDER, all there is much less “Microsoft Mess Style”.
Btw. Epic should provide all tools with engine ie. no msvc required to build projects.
Hi, Nawrot! I read all of ur comments and tried all.
I struggled 5 hours again, but anyway I NAILED IT!!!
Thanks a million.
The problem was some requirements weren’t installed in my VS, you was right!
At first I erased all of VS program and re-downloaded, but it didn’t work again,
but I solved with a little bit of different way.
And I write how I solve this problem down below.
Make project with Unreal Engine. > Error Message said ‘Your project can’t be compiled’ > Click ‘Open with Visual Studio’, and click the button in the error message. > A small error message appears in your VS right tab > I don’t remember clearly, but the error message should tell you what additional programs you need > Click and download (The ‘Visual Studio Installer’ must be deactivated when you performing this action) > Restart the VS > You can see the project will be maded well
I really really wish I was the only one suffering from this problem…
I give the deep gratitude and honor of my troubleshooting to @Nawrot !!!
This error message is an incompatibility between UE 5.3 and the most recent version of the VS compiler (v14.39 / VS 2022 17.9 and possibly newer).
Installing the recommended compiler version and Windows SDK through the Visual Studio installer should make sure that UE 5.3 projects compile successfully.
These are the recommended versions for 5.3 as they are listed in the VS Installer:
MSVC v143 - VS 2022 C++-x64/86-Buildtools (v14.36)
Hi Sebastian, Thanks a lot!
I was really curious about what I installed after clicking the error message, finally I know what I needed
Thanks for your supports! @UE_Seb.Tho
Please, @UE_Seb.Tho , this is a freaking nightmare!! It’s ridiculous we can’t even create a c++ project in Windows 11. Please, make at least a tutorial to make Unreal 5.3 work with Visual Studio I have tried tons of possible VS components combinations.
EDIT: because of a casuality, I have noticed the main problem was related to a plugin is automatically installed within a hardware piece: the plugin from 3Dconnexion, even if not enabled in the project. I have deleted it from the Engine/Plugins folder and even if I still can’t package plugins from the Editor (but I can in 5.2 and 5.4), I have been able to do it with a .bat file, at least.