Create new UE_5 C++ project problem with VS 2022

Hi!
I’m having trouble creating a new C++ project with UE5 and VS 2022.

I followed the manual and installed what it says: Setting Up Visual Studio Development Environment for C++ Projects in Unreal Engine | Unreal Engine 5.5 Documentation | Epic Developer Community

But when I create the project, it gives me this information and doesn’t compile:

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

Running C:/Program Files/Epic Games/UE_5.4/Engine/Build/BatchFiles/Build.bat Development Win64 -Project="G:/PROJECTS/UE/MyProjecthdhdhdh/MyProjecthdhdhdh.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="G:/PROJECTS/UE/MyProjecthdhdhdh/MyProjecthdhdhdh.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Log file: C:\Users\peque\AppData\Local\UnrealBuildTool\Log.txt
Available x64 toolchains (1):
 * C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808
    (Family=14.43.34808, FamilyRank=5, Version=14.43.34810, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)
Visual Studio 2022 compiler version 14.43.34810 is not a preferred version. Please use the latest preferred version 14.38.33130
Available x64 toolchains (1):
 * C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808
    (Family=14.43.34808, FamilyRank=5, Version=14.43.34810, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)
Visual Studio 2022 compiler version 14.43.34810 is not a preferred version. Please use the latest preferred version 14.38.33130
Creating makefile for MyProjecthdhdhdhEditor (no existing makefile)
Available x64 toolchains (1):
 * C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808
    (Family=14.43.34808, FamilyRank=5, Version=14.43.34810, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)
Visual Studio 2022 compiler version 14.43.34810 is not a preferred version. Please use the latest preferred version 14.38.33130
Available x64 toolchains (1):
 * C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808
    (Family=14.43.34808, FamilyRank=5, Version=14.43.34810, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)
Visual Studio 2022 compiler version 14.43.34810 is not a preferred version. Please use the latest preferred version 14.38.33130
@progress push 5%
Parsing headers for MyProjecthdhdhdhEditor
  Running Internal UnrealHeaderTool G:\PROJECTS\UE\MyProjecthdhdhdh\MyProjecthdhdhdh.uproject G:\PROJECTS\UE\MyProjecthdhdhdh\Intermediate\Build\Win64\MyProjecthdhdhdhEditor\Development\MyProjecthdhdhdhEditor.uhtmanifest -WarningsAsErrors -installed
Total of 0 written
Reflection code generated for MyProjecthdhdhdhEditor in 0.6398306 seconds
@progress pop
Building MyProjecthdhdhdhEditor...
Using Visual Studio 2022 14.43.34810 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808) and Windows 10.0.19041.0 SDK (C:\Program Files (x86)\Windows Kits\10).
Warning: Visual Studio 2022 compiler is not a preferred version
Determining max actions to execute in parallel (24 physical cores, 32 logical cores)
  Executing up to 24 processes, one per physical core
Using Parallel executor to run 6 action(s)
------ Building 6 action(s) started ------
[1/6] Resource Default.rc2
[2/6] Compile [x64] SharedPCH.UnrealEd.Project.ValApi.Cpp20.cpp
C:\Program Files\Epic Games\UE_5.4\Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h(31): error C4668: '__has_feature' no est? definido como macro de preprocesador y se reemplaza por '0' para '#if/#elif'
C:\Program Files\Epic Games\UE_5.4\Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h(31): error C4067: s?mbolos (token) inesperados despu?s de la directiva del preprocesador; se esperaba una nueva l?nea
C:\Program Files\Epic Games\UE_5.4\Engine\Source\Runtime\Engine\Classes\Engine\SkeletalMesh.h(930): warning C4996: 'FBoneMirrorInfo': FBoneMirrorInfo is deprecated. Please use UMirrorDataTable for mirroring support. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
Total time in Parallel executor: 16.35 seconds
Total execution time: 18.72 seconds


What am I doing wrong? Is there something I’m missing?

Regards

Hello,
Are you using UE5.4 from the source code (github) or editor?
I’ve just created a c++ blank project from editor and was able to compile it correctly.

Small details to look at:

  1. What build version is selected?

  2. It seems you have the correct SDK version installed.

  3. If using editor version, try to verify your engine installation and try again

  4. What errors are listed in the error list panel (select Build for project only errors)