GCC (GNU Compiler Collection) is a collection of compilers for various programming languages such as C, C++, Objective-C, Objective-C++, Fortran, Ada, D, and Go. GCC is a part of GNU Project. GCC includes gcc and g++ compilers.
The following table provides main differences between gcc and g++ compilers.
|1.||Mainly used for compiling programs written in C programming language.||Mainly used for compiling programs written in C++ programming language.|
|2.||Allows to compile ||Allows to compile |
|3.||By default, the object files are not linked with the C++ standard library.||Automatically links the object files with the C++ standard library.|