1)MinGW(Minimalist GNU for Windows)、gccのインストール
以下のサイト参照。
https://webkaru.net/clang/mingw-gcc-install/
2)パスの設定
環境変数のPathに以下を追加
;C:\MinGW\bin
3)動作確認
C:\Users\USER>gcc --version
gcc (GCC) 5.3.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.