What is the difference between g++ and gcc? Which one of them should be used for general c++ development?
One notable difference is that if you pass a .c file to gcc it will compile as C.
.c
The default behavior of g++ is to treat .c files as C++ (unless -x c is specified).
-x c