title: static linking in gcc (mingw)
body: <p>I'm trying to link with an external library which consists of 22 static library (.a) files. When I use visual studio, I just need to pass down the directory to VS and it will link with the files in the directory. With gcc what I can first think of is,</p>
  
  <pre><code>-LC:\...\directory_of_library -lsth1 -lsth2 -lsth3 ... -lsth22
  </code></pre>
  
  <p>, which I am trying to find a better way than.</p>
  
  <p>Also, will there be any problems with 'overlinking'? so linking with more libraries than necessary. Or will the compiler smartly ignore the redundant part?</p>