G++ is a command for compiling C++ code. It is very similar to GCC, a C compiler. g++ automatically includes the C++ libs, so
g++ hello.cpp
is about equivalent to
gcc -lstdc++ hello.cpp
Please enable JavaScript to pass antispam protection!Here are the instructions how to enable JavaScript in your web browser http://www.enable-javascript.com.Antispam by CleanTalk.