cygwin / msys: fatal error LNK1104: Cannot open file "kernel32.lib"

  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.

Published 2654 original articles · praised 352 · 2.1 million views

Guess you like

Origin blog.csdn.net/quantum7/article/details/105393036