Hello I have been having issues when building the game. I have visual studio 2022 with the necessary addons installed but is still getting an error when building the game.
:[1/5] Resource Default.rc2
[2/5] Compile SharedPCH.Core.ShadowErrors.cpp
Detected compiler newer than Visual Studio 2022, please update min version checking in WindowsPlatformCompilerSetup.h
D:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h(26): error C4668: ‘__has_feature’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif’
D:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h(26): error C4067: unexpected tokens following preprocessor directive - expected a newline
CompilationResultException: Error: OtherCompilationError
at UnrealBuildTool.ActionGraph.ExecuteActions(BuildConfiguration BuildConfiguration, List1 ActionsToExecute, List
1 TargetDescriptors) in d:\build++UE5\Sync\Engine\Source\Programs\UnrealBuildTool\System\ActionGraph.cs:line 375
at UnrealBuildTool.BuildMode.Build(TargetMakefile Makefiles, List1 TargetDescriptors, BuildConfiguration BuildConfiguration, BuildOptions Options, FileReference WriteOutdatedActionsFile) in d:\build\++UE5\Sync\Engine\Source\Programs\UnrealBuildTool\Modes\BuildMode.cs:line 611 at UnrealBuildTool.BuildMode.Build(List
1 TargetDescriptors, BuildConfiguration BuildConfiguration, ISourceFileWorkingSet WorkingSet, BuildOptions Options, FileReference WriteOutdatedActionsFile, Boolean bSkipPreBuildTargets) in d:\build++UE5\Sync\Engine\Source\Programs\UnrealBuildTool\Modes\BuildMode.cs:line 282
at UnrealBuildTool.BuildMode.Execute(CommandLineArguments Arguments) in d:\build++UE5\Sync\Engine\Source\Programs\UnrealBuildTool\Modes\BuildMode.cs:line 237
at UnrealBuildTool.UnrealBuildTool.Main(String ArgumentsArray) in d:\build++UE5\Sync\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.cs:line 612
WriteFileIfChanged() wrote 7 changed files of 7 requested writes.