Skip to content

Ch 01.02:编译和运行是彼此独立的步骤 | BLOG #58

Description

@TonyMistark

https://tonymistark.github.io/2022/12/26/rust_docs/ch_01_02_hello_world/

编译和运行是彼此独立的步骤你刚刚运行了一个新的程序,所以让我们来检查一下这个过程的每一个步骤。 在运行Rust程序之前,你必须通过rustc命令,用Rust编译器来编译这个它,并传入你源代码文件的名字,比如: 1$ rustc main.rs 如果你有C或者C++的技术背景,你可以视作像gcc 或者clang。在编译成功之后,Rust 会输出一个二进制可执行文件。 对于Linux,macOS和P

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions