title: Link against a Windows .dll+.lib file combination with GCC under Cygwin?
body: <p>I know how to link against libraries in Unix-ish contexts: If I'm working with <code>.a</code> or <code>.so</code> files, I specify the root search directory with <code>-L/my/path/to/lib/</code> and for libMylib I add <code>-lMyLib</code>. </p>
  
  <p>But what if I have </p>
  
  <ul>
  <li>a <code>.dll</code> (e.g. in the <code>Windows\System32</code> directory)?</li>
  <li>a <code>.dll</code> (in <code>Windows\System32</code>) and a <code>.lib</code> (someplace else)?</li>
  </ul>
  
  <p>These DLLs are by some other party; I don't have access to their sources - but do have access to the corresponding include files, against which I manage to compile.</p>