GNU G++ is a Linux-based compiler that is used for compiling C++ programs. The g++ command line is an invocation command used to preprocess and compile C++ source code into machine-level language. This command line is also used to link the object file to an executable file. The g++ command options allow you to stop the compilation and running process at any time.