C++各種接尾辞ファイル名を理解する.c, .cc, .cpp, .h, .o, .lib ...
GNU GCC recognises all of they as C++ files, and will use C++ compilation regardless of whether you invoke it through gcc or g++.
.C
is a C++ file, but .c
is a C file. cc = C with classes
cpp = C puls plus