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