GCC provides several help and diagnostic options to assist in troubleshooting problems with the compilation process. All the options described in this chapter work with both gcc and g++.
gcc
g++