On Windows with UE 5.7, Editor build fails with C4668 saying UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_7
is not defined. It triggers inside MallocBinnedCommon.h
while compiling my module/plugin.
Environment
- Toolchain: VS 2022 14.38.33145 + Windows SDK 10.0.22621 (AutoSDK)
- Target: GamerEditor-Win64-Development (91 actions in parallel executor)
Log excerpt
error C4668: 'UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_7' is not defined ...
C:\UnrealEngine\Engine\Source\Runtime\Core\Public\HAL\MallocBinnedCommon.h(1005,5)
#if UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_7
^
Samples across multiple TUs:
Questions
- For UE 5.7, what is the correct
IncludeOrderVersion
to use in.Target.cs
? Do we need to bump it to the 5.7 value when migrating? - Is C4668 being treated as error by design in 5.7 or is it a toolchain flag? What’s the recommended fix (update include order vs. suppress warning)?
- Any official guidance to ensure
CoreMinimal.h
is included first without touching internal headers? - Migration tips for modules/plugins beyond toggling
IncludeOrderVersion
/DefaultBuildSettings
?