[LOG]
최초작성 : 23.6.16

[참고] 

 

[서론]

 

(1) 컴파일 에러가 뜨기 전에는 Visual Studio가 설치 되어 있었음

(2) Visual Studio를 제거하고 러스트 파일을 컴파일 했는데 위와 같은 에러가 발생

(3) 아직 국내에는 러스트 자료가 많지 않아 보임.

(4) 리눅스, 윈도우, 맥 등에서 컴파일 해서 실행할 수 있는 exe 파일(실행)을 만들 수 있다고 해서 공부하는 중

 

[본론]

Q. 윈도우 환경에서 아래와 같은 문구가 나타나면?


-------------------------------------------------------------------------------------------------------------
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 `winapi` (build script) due to previous error

-------------------------------------------------------------------------------------------------------------

 

[결론]

 

A. cmd(명령 프롬프트) 실행
c:\...> rustup toolchain install stable-x86_64-pc-windows-gnu


c:\...>rustup default stable-x86_64-pc-windows-gnu

진행 완료 후
c:\...> cargo build

 

끝.

+ Recent posts