0
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?

C/C++コンパイル方法

Posted at

前提

・mingwをインストールした状態
・Windowsのcmdで実行

Cのコンパイル

コンパイルするとexeファイルができあがるので、-oオプションで任意のファイル名をつけると良い。

gcc -o [任意のexeファイル名] [コンパイルしたいcファイル名]

上記が通れば以下で実行できる

任意のexeファイル名

C++のコンパイル

Cの時と同様で、gcc → g++に変わっただけ

g++ -o [任意のexeファイル名] [コンパイルしたいcppファイル名]

上記が通れば以下で実行できる

任意のexeファイル名
0
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
0
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?