Which compiler are you trying to use and what version?
If you're using MinGW, make sure that the MINGW_PATH is set to the MinGW compiler in the file config.winnt.txt.
If you're using Visual Studio, then make sure that the MSBUILD_PATH is set to the correct version in the file config.winnt.txt..
Visual Studio 2022 location is different. Open the Windows Explorer and locate where the MSBUILD.exe is.