Closed
Description
When I open the Command Prompt, rustc is successfully found in PATH, but needs libgcc to run.
C:\> rustc --lib mycode.rs
The program can't start because libgcc_s_dw2-1.dll is missing from your computer.
Try reinstalling the program to fix this problem.
So I try MinGW.
$ rustc --lib mycode.rs
sh: rustc: command not found
$ where rustc
c:\Program Files (x86)\Rust\bin\rustc.exe
$ rustc.exe
Usage: c:\Program Files (x86)\Rust\bin\rustc.exe [options] <input>
...
For some reason, MinGW cannot find rustc
unless it is specified as rustc.exe
. This is highly inconvenient, as my shell scripts are configured to call rustc
; I do not want to use different settings between [Windows] and [Mac OS X, Linux, Unix, Haiku]. I just want to be able to use rustc in all cases, if possible straight from the Command Prompt rather than MinGW.
Can someone please bundle the libgcc DLL with rustc in the Windows installer so that it can be used like a normal decent program?