Error: linking with 'x86_64-w64-mingw32-gcc' failed: exit code: 1 when configuring rust in vscode

error one

  1. error:linking with 'x86_64-w64-mingw32-gcc'failed:exit code:1When I was just learning block chain, our teacher asked us to use the rust language, and then I encountered this error during the compilation process . Baidu has not had this error for a long time.
  2. As a result, you only need to use this command in cmdrustup toolchain install stable-x86_64-pc-windows-gnu

error two

  1. When using the rust language to write code in vscode unresolved import rand, the result is that you only need to cargo.htmladd one to the file version =2018
    or change the ' version ' after the equal sign to the ' 2018 ' version

Guess you like

Origin blog.csdn.net/qq_44421796/article/details/125880597