0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Tips: kernel32-sysのコンパイルが失敗する

Posted at

現象

コンパイル時に以下のエラーが出てkernel32-sysのコンパイルが失敗する。

error: linking with `link.exe` failed: exit code: 1

(中略)

Caused by:
  Could not compile `kernel32-sys`.

対処方法

Rustの(windows-msvc版ではなく)windows-gnu版をインストールする。
https://www.rust-lang.org/en-US/other-installers.html#standalone

おまけ

C++ build tools for Visual Studioもインストールしなくて良くなる。

環境

  • OS: Windows7 32bit
  • Rust: 0.19.0
  • Cargo: 0.20.0

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?