Monday, 31 July 2017

Difference Between g++ and gcc


The main differences:

gcc will compile: .c and .cpp files as C and C++ respectively.
g++ will compile: .c and .cpp files but they will all be treated as C++ files.

gcc and g++ are compiler-drivers of the 'Gnu Compiler Collection' (which was once upon a time just the 'Gnu C Compiler').

Referrers to all the different languages that are supported by the GNU compiler.
gcc: GNU C Compiler
g++: GNU C++ Compiler