title: Linking of static lib with another static lib and use the master lib in a exe
body: <p>In eclipse I have done the below in windows platform with MinGW compiler - 
  C_proj.exe--->links---->libB_proj.a----->links---->libA_proj.a</p>
  
  <ol>
  <li><p>When linking A with B I am specifying only the path to libA_proj.a (not the lib name because that is not possible it seems!)</p></li>
  <li><p>When making use of B inside C I had to specify both the libA_proj.a and libB_proj.a.</p></li>
  </ol>
  
  <p>Codes - </p>
  
  <pre><code>//a.h
      class a
      {
      public:
          void printA();
      };
  
  //a.cpp    
      void a::printA()
      {
          std::cout&lt;&lt;"This is 'a'"&lt;&lt;std::endl;
      }
  //b.h
      class b
      {
      public:
          void printB();
          void printA();
      };
  //b.cpp
      void b::printB()
      {
          std::cout&lt;&lt;"This is 'B'"&lt;&lt;std::endl;
      }
  
      void b::printA()
      {
          std::cout&lt;&lt;"This is 'B'....calling A"&lt;&lt;std::endl;
          a objA;
          objA.printA();
      }
  
  //c.cpp    
      int main()
      {
          b objB;
          objB.printB();
          objB.printA();
          return 0;
      }
  </code></pre>
  
  <p>Now my requirement is --
  <strong>I don't want to link both B and A with C exe. Is there a way to link only B with C and get the work done so that I can provide only B and C exe to a third party?</strong> </p>