cl.exe is unable to create an executable file. C compiler test failed.

error:

cl.exe is unable to create an executable file.
C compiler test failed.

Check the config.log for specific errors. 

  • LINK: fatal error LNK1104: Unable to open the file "kernel32.lib"

reference:

https://blog.csdn.net/quantum7/article/details/105393036

  • configure: line 974: cl.exe: command not found

.bashrc:

export PATH=${PATH}:/C/'Program Files (x86)'/'Microsoft Visual Studio 14.0'/VC/bin/amd64

  • LINK: fatal error LNK1104: Unable to open the file "ucrt.lib"

 

Published 2654 original articles · praised 352 · 2.1 million views

Guess you like

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