title: Link User32 with gcc
body: <p>I have a C program which has a function call that is defined in <code>windows.h</code> (which I have included), however,  when I try and compile it with <code>gcc</code>, I get the error:</p>
  
  <pre><code>warning: implicit declaration of function `LockWorkStation'
  </code></pre>
  
  <p>I looked at the MSDN documentation and I see that this function is the <code>User32</code> library file, and I was wondering how I would go about linking that to my file.</p>