4 examples for g++
# Compiles a C++ programm with output as output # So you can run ./output g++ input.cpp -o output
# Compiles your program with debug flags so that valgrind will tell you line numbers of errors g++-g
# Compile a program executable to a file and display warnings. # g++ may catch problems before they slap you g++-o