WindowsでC言語のコンパイル環境構築 | サーバーエンジニアのスキルアップ日記

サーバーエンジニアのスキルアップ日記

サーバエンジニアがレンタルサーバーを使って試行錯誤しながら各種サービスを動作させ、スキルアップする日々を語ります。

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.