title: When building a shared library, are only the header files of dependent libraries needed?
body: <p>Say a shared library <em>A</em> depends on another shared library <em>B</em>.</p>
  
  <p>In this case, when I build <em>A</em>, do I need only the header file of <em>B</em>?
  Because <em>B</em> is only needed when I build some program that needs <em>A</em>. Is it right? Could you explain the details?</p>