msvc 설치하고 하니 정상적으로 잘 빌드 된다.
C:\Users\user\Desktop\study\rust\hello_cargo>cargo build Compiling hello_cargo v0.1.0 (C:\Users\free\Desktop\study\rust\hello_cargo) Finished dev [unoptimized + debuginfo] target(s) in 1.04s |
---
에라이.. 역시 윈도우는 취미/개발용이 아니라 엔터테인먼트 용이었나!? (뜬금없이 분노중)
C:\Users\user\Desktop\study\rust>cargo new hello_cargo Created binary (application) `hello_cargo` package C:\Users\user\Desktop\study\rust\hello_cargo> cd hello_cargo C:\Users\user\Desktop\study\rust\hello_cargo>cargo build Compiling hello_cargo v0.1.0 (C:\Users\free\Desktop\study\rust\hello_cargo) error: linker `link.exe` not found | = note: program not found note: the msvc targets depend on the msvc linker but `link.exe` was not found note: please ensure that Visual Studio 2017 or later, or Build Tools for Visual Studio were installed with the Visual C++ option. note: VS Code is a different product, and is not sufficient. error: could not compile `hello_cargo` due to previous error |
[링크 : https://doc.rust-lang.org/book/ch01-03-hello-cargo.html]
cargo.toml 내용은 평범한(?) ini 스타일이네
[package] name = "hello_cargo" version = "0.1.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] |
.gitignore 파일은 /target 인걸 봐서는 /src 에는 소스 /target에는 바이너리가 생성되는 구조인듯
/target |
'Programming > rust' 카테고리의 다른 글
rust if문 (0) | 2023.05.11 |
---|---|
rust rustup doc (0) | 2023.05.10 |
rust 와 main.rs (0) | 2023.05.09 |
rust 문서 다운로드하기(cargo) (0) | 2023.05.09 |
rust in windows (0) | 2023.05.09 |