Debugging C++ Compilation and Linking
Going Verbose Using -v in a g++ or gcc command line will provide verbose output, however to get the linker that is called by the compiler to give verbose output requires the appropriate flag to be passed on to the linker. This is done using the -Wl, ___ mechanism. To cause verbose linker output it is: -Wl,--verbose