I once built Qt from source but forget now which version of compilers I used to build it. In the config.summary, I found the following string:
Building for: win32-msvc (x86_64, CPU features: sse sse2)
Compiler: msvc 19.xx.xxxxx.0
Open Visual Studio Help/About Microsoft Visual Studio, I found the Visual Studio version is 17, which is a mismatch with the msvc version. In fact, the MSVC version is not the same thing as the Visual Studio version. To find the msvc version, you should first locate the cl.exe you used to compile, then run that cl.exe without any argument. It will print its version on the screen, which is also the value of _MSC_VER
and _MSC_FULL_VER.