3
1

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.

Windowsでsolcを使ってsolidityをコンパイルする方法

Posted at

Ethereumの学習をしています。
solidityを使用してコントラクトのコードを組んでいる時にWindows環境でコンパイルする方法を覚え書きとして方法を残しておきます。

solc実行ファイルのダウンロード
以下のリンク先からコンパイラであるsolcをダウンロードします。
solidityのライブラリなどを使用する場合、ライブラリで使用されているバージョンに合ったコンパイラをダウンロードする必要があります。
https://github.com/ethereum/solidity/releases

私の場合、使用していたライブラリが「0.4.24」となっていたので「0.4.24」をダウンロード
https://github.com/ethereum/solidity/releases/tag/v0.4.24

ダウンロードするファイルは「solidity-windows.zip」を選択する。
解凍すると以下のとおり、「solc.exe」が入っているので、任意のフォルダに配置してpathを通すと完了です。

image.png

3
1
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
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?