Fixing Two Build Errors in Unreal Engine 4.27.2 on Windows 10

Error

  1. ‘__cpp_noexcept_function_type’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif’ and ‘_NOEXCEPT_TYPES_SUPPORTED’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif
  2. overflow in constant arithmetic while compiling GetClobberValue

Sol

  1. Del Windows 11 SDK (10.0.22621.0)
  2. Del Windows 11 SDK (10.026100.4654)
  3. Just Use Windows 10 SDK (10.0.19041.0) (or under version)

If the same errors persist even after following the above steps, try deleting the two SDK folders located in
C:\Program Files (x86)\Windows Kits\10\Include
and then rebuild the UE.

This is the solution that worked for me.