Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rust 1.16.0 msvc link错误 #94

Open
Bpazy opened this issue Apr 14, 2019 · 0 comments
Open

rust 1.16.0 msvc link错误 #94

Bpazy opened this issue Apr 14, 2019 · 0 comments

Comments

@Bpazy
Copy link
Owner

Bpazy commented Apr 14, 2019

rust1.16.0VS2017下不能正确识别link以及相关的LIB,所以需要手动设置环境变量,以下的环境变量设置是在默认VS2017的安装路径下:

手动添加PATH:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64

手动添加LIB:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\lib\x64;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.14393.0\um\x64;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.14393.0\ucrt\x64

一切OK:
这里写图片描述

这个问题在1.17.0应该可以解决。
issue: rust-lang/rust#38584

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant