2017-11-21 20 views
0

WindowsでRustを使用してx64をコンパイルしようとしています。Windows上でRustでx64をコンパイルする

私が設定した

rustup default stable-x86_64-pc-windows-msvc

を以下のプログラムでは

fn main() { println!("{}", std::usize::MAX); } 

cargo runプリントアウト4294967295

しかしcargo run --target --target x86_64-pc-windows-msvcは私を与える:また

error[E0463]: can't find crate for 'std' 
    | 
    = note: the 'x86_64-pc-windows-msvc' target may not be installed 

x86_64-pc-windows-msvcこれはrustc --print sysrootを使用して、夜間たビルド錆をアンインストールし、最新の安定ビルドを再インストールすることで修正されました

答えて

1

... rustc --print target-list

に私が何をすべきか見当がつかないです。

関連する問題