4
我試圖讓Rust運行在我的Windows機器上。我遵循指示,但是當我嘗試了世界程序hello時,它吐出了下面的內容。它看起來沒有能夠鏈接到gcc ..我有gcc在那裏。有人能幫我弄清楚這裏有什麼問題嗎?Windows上的鏽鏽安裝
$ rustc foo.rs
error: linking with `gcc` failed: exit code: 1
note: gcc arguments: '-m32' '-LC:\Program Files (x86)\Rust\bin\rustlib\i686-pc-m
ingw32\lib' '-o' 'foo' 'foo.o' '-shared-libgcc' '-LC:\MinGW\msys\1.0\home\ENwank
wo\.rust' '-LC:\MinGW\msys\1.0\home\ENwankwo' 'C:\Program Files (x86)\Rust\bin\r
ustlib\i686-pc-mingw32\lib\libstd-3e5aeb83-0.9.rlib' 'C:\Program Files (x86)\Rus
t\bin\rustlib\i686-pc-mingw32\lib\libgreen-83b1c0e5-0.9.rlib' 'C:\Program Files
(x86)\Rust\bin\rustlib\i686-pc-mingw32\lib\librustuv-2ba3695a-0.9.rlib' '-lws2_3
2' '-lpsapi' '-liphlpapi' '-lmorestack'
note: gcc: fatal error: -fuse-linker-plugin, but liblto_plugin-0.dll not found
compilation terminated.
error: aborting due to previous error
task 'rustc' failed at 'explicit failure', C:\bot\slave\dist2-win\build\src\libs
yntax\diagnostic.rs:75
task '<main>' failed at 'explicit failure', C:\bot\slave\dist2-win\build\src\lib
rustc\lib.rs:453
您的MinGW安裝是否舊?你能找到任何關於'liblto_plugin-0.dll'(它存在於任何地方)嗎? –
$ find/mingw -iname \ * .dll 它沒有找到liblto_plugin-0.dll。我還應該做什麼? – user618677
我的版本是4.8.1在Windows 7 – user618677