-
Notifications
You must be signed in to change notification settings - Fork 13.3k
windows 10 rustc main.rs #32283
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
Comments
Assuming you're using the MSVC version of rust, you need to install Visual Studio 2013 or later. https://www.rust-lang.org/downloads.html#win-foot |
@zanjs 你能说说你的安装包是从哪个地址下载的吗? 记得安装时不要去掉安装链接器的勾 你现在用的这个是MSVC版本的,那个链接器是没有随安装包一起分发的,因此就像Stebalien说的,你需要先安装过MSVC。 |
I feel that we should modify the installer to make it more clear to the user that they need MSVC to make MSVC version actually work. Thoughts? |
@bombless 我电脑安装了 vs 2015 的 ,还需要装什么,貌似 MSVC的配置环境还不简单呀,果断使用 |
main.rs
fn main() { println!("Hello, world!"); }
run
`
F:\coding\rust-lang\test\hello_world>rustc main.rs
error: could not exec the linker
link.exe
: 系统找不到指定的文件。`
The text was updated successfully, but these errors were encountered: