执行clang报错:
c:/>clang test.c
clang: warning: unable to find a Visual Studio installation; try running Clang from a developer command prompt [-Wmsvc-not-found]
clang: error: unable to execute command: program not executable
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决方法:
1、安装visual stduio,地址: https://visualstudio.microsoft.com/zh-hans/
2、安装时选择安装负载: c++桌面开发
3、 配置环境变量