ちょっと勉強する必要があったのでC++のコマンドラインでのコンパイル方法をメモ
①ソースファイル
func.cpp
example.cpp
②オブジェクトファイル
func.o
example.o
③実行ファイル
example.exe
手順(1)オブジェクトファイルをつくる(①から②をつくる)
c++ -c func.cpp
c++ -c example.cpp
手順(2)実行ファイルをつくる(②から③をつくる)
c++ func.o example.o -o example.exe