Hi there,
I encountered a similar issue with the combination of UE5.3.2 and Visual Studio 2022 (version 17.12.4), and here’s how I resolved it:
- Updating
WindowsPlatformCompilerSetup.h
:
The error related to the compiler version detection can be fixed by updating the version check.
- Navigate to
Engine\Source\Runtime\Core\Public\Windows\WindowsPlatformCompilerSetup.h
. - Open the file in a text editor (ensure the file is not marked as read-only).
- Locate this line:
#if defined(_MSC_VER) && _MSC_VER > 1939
- Change
1939
to1948
:
#if defined(_MSC_VER) && _MSC_VER > 1948
- Save the file and put it on read-only again. This should eliminate the warning about the compiler being newer than Visual Studio 2022.
- Fixing the
__has_feature
error:
The second issue arises from a__has_feature
directive in the headerConcurrentLinearAllocator.h
, which causes a compiler error.
To resolve it:
- Navigate to
Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h
. - Find the line:
#elif __has_feature(address_sanitizer)
- Replace it with:
#elif 0
- This will bypass the
__has_feature
check and allow the build to proceed without cascading errors.
Hope this helps!