error: linker `link.exe` not found

error: linker `link.exe` not found
  |
  = note: 系统找不到指定的文件。 (os error 2)

note: the msvc targets depend on the msvc linker but `link.exe` was not found

note: please ensure that VS 2013, VS 2015, VS 2017 or VS 2019 was installed with the Visual C++ option

error: aborting due to previous error

error: could not compile `start_rs`

一,link.exe 是什么?   

  C/C++增量连接器,和Windows上的静态库和动态库来交互用的。

二,官网上关于window环境安装的提示如下

三,为什么我不用C/C++,但是还需要我安装对应的工具

        当你用windows会看到依赖Visual C++,用不着奇怪。因为Rust要对各个平台的编译链接交互等提供支持。我认为,既然官方都这么提供方案了,那么这一定是目前最简单,成本最低的方案,所以别纠结了,照做吧,语言在发展过程中必然会出现一些小问题,希望以后装SDK的时候会把这些步骤优化在内

 

猜你喜欢

转载自blog.csdn.net/qq_39308071/article/details/112369207