title: How to build .lib files using Code::Blocks IDE
body: <p>I have a C project which I would like to <em>build</em> as a <em>static library</em> and not as a executable.</p>
  
  <p>My high level environment is:</p>
  
  <ul>
  <li>IDE: Code::Blocks 16.01</li>
  <li>Operating System: Windows 7</li>
  <li>Compiler: MinGW    (GCC port for Windows)</li>
  </ul>
  
  <p>As a build target option, I select static library (instead of executable) and select build.</p>
  
  <p>Seems to work fine. Problem is, the output is a .a file (which I understand is the Unix/Linux format) and not the windows format of .lib.</p>
  
  <p>Any hints on where I can look to solve this?</p>