rust Non-UTF-8 output

Non-UTF-8 output

1
2
D:\dev\vs\Common7\Tools\VsDevCmd.bat
rstc 编译
1
2
3
4
5
error: linking with `link.exe` failed: exit code: 1112
  |
  = note: Non-UTF-8 output: msvcrt.lib(chkstk.obj) : fatal error LNK1112: xxx\r\n

error: aborting due to previous error

解决

用 D:\dev\vs\VC\Auxiliary\Build\vcvars64.bat 启动