Compile under msys2, this error occurs. This is not a VS configuration, what should I do? After searching a bit, there is really a way. Configure environment variables:
LIB
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib
Re-compilation is still wrong, but the error is different. The description is effective.