Getting "error C4756: overflow in constant arithmetic" while building Unreal 5.4.2 from source code

Hi.
As I mentioned in the first 2 messages, my problem was related to Windows SDK version because INFINITY is defined in the headers coming by SDK package. Either there is a problem with the newest SDK version or we installed an incorrect version of the SDK (like Windows 11 SDK to Windows 10 SDK, just speculating)

The solution for me is to Uninstall the most recent version (10.0.26100.1) and installing “Windows SDK for Windows 11 (10.0.22621.755)”

The SDK archive can be found in this page: Windows SDK and emulator archive | Microsoft Developer

8 Likes