title: Linking libraries with minGW
body: <p>I am using: Windows 7; MinGW (GCC) version 4.8.1; c++ </p>
  
  <p>I have several own build libraries which links together to an executable.
  A simple example with one library to link: <strong>libFolder\libforms.a</strong></p>
  
  <p>A) <code>g++ -o main\theApp.exe main\main.o -LlibFolder\ -lforms</code></p>
  
  <p>B) <code>g++ -o main\theApp.exe main\main.o libFolder\libforms.a</code></p>
  
  <p>Both generate the same executable.</p>
  
  <ul>
  <li>What is the difference between those two ways to let gcc know what
  library to link? </li>
  <li>Is there any drawback or a No-Go on B)?</li>
  </ul>