title: Linking to winmm.dll from GCC
body: <p>I would like to use mciSendString from gcc to build a dll so I need to link to the winmm.dll library.</p>
  
  <p>I tried something like this:</p>
  
  <pre><code>gcc -c -o dllTest.o dllTest.c -lC:\Windows\System32\winmm.dll
  </code></pre>
  
  <p>But when i tried to build the dll I get an undefined reference for mciSendString.</p>
  
  <p>What is the proper way to link to winmm from gcc?</p>