title: linker option to list libraries used
body: <p>I am working on a Linux platform and using the GNU C++ compiler.  I am trying to resolve a link error that says some symbols are undefined.  I can go find libraries with the name provided on the command line, and see that they contain the symbols in question ( using the 'nm' utility ). </p>
  
  <p>I know that for the compilation step, I can use the command-line flag '-H' instead of '-c' in order to get a list of header files that were #included into the compilation.  Is there a similar option for the linker?  I figure if I could see the list of files that the linker used to handle each '-lmylibrary' flag, I can troubleshoot further.  </p>