title: SDL2_mixer linking undefined references C::B
body: <p>I am trying to use SDL2_mixer for sound but I get these errors</p>
  
  <p>undefined reference to `Mix_OpenAudio'</p>
  
  <p>undefined reference to `Mix_LoadWAV_RW'</p>
  
  <p>undefined reference to `Mix_PlayChannelTimed' </p>
  
  <p>According to Lazy Foo's tutorials undefined references mean that I have something wrong in my linker settings how every I believe I have it right. It goes as follows:</p>
  
  <p>-lmingw32 -lSDL2main -lSDL2 -lSDL2_mixer -lSOIL -lOpenGL32</p>
  
  <p>Additionally the search directories for the header and lib files are correct (I have triple checked) and the .dll is in the same directory as the executable. The code files also have the corresponding #include directories. There are not any more things I can think to try so any help is appreciated</p>