title: compiling FMOD with mingw?
body: <p>I have the following example from gamedev, and I was wondering how you would go about compiling this. I've downloaded FMOD and its installed in <code>C:\Program Files\FMOD SoundSystem\FMOD Programmers API Win32</code>. And I have the .dll's and a mp3 file in my working directory but I'm not sure what/how to compile and link this through command line?</p>
  
  <p><strong>EDIT</strong>: code</p>
  
  <pre><code>#include 
  #include "inc/fmod.h"
  
  FSOUND_SAMPLE* handle;
  
  int main ()
  {
     // init FMOD sound system
     FSOUND_Init (44100, 32, 0);
  
     // load and play sample
     handle=FSOUND_Sample_Load (0,"sample.mp3",0, 0, 0);
     FSOUND_PlaySound (0,handle);
  
     // wait until the users hits a key to end the app
     while (!_kbhit())
     {
     }
  
     // clean up
     FSOUND_Sample_Free (handle);
     FSOUND_Close();
  }
  </code></pre>