Compiling a Rust file with rustc foo.rs
fails if I don't have a C++ toolchain installed. But when compiling a Go program, such a toolchain is not required. Why is that?
duanbi8089
2019-05-16 06:17 浏览 609
已采纳
为什么Rust要求使用C ++工具链来生成Rust二进制文件,而Go之类的语言却没有此要求?
图片转代码服务由CSDN问答提供 功能建议
如果我没有
使用 rustc foo.rs code>编译Rust文件失败 已安装C ++工具链。 但是在编译Go程序时,不需要这样的工具链。 为什么会这样? p>
div>
- 写回答
- 好问题 提建议
- 追加酬金
- 关注问题
- 分享
- 邀请回答