title: SDL Addon Libraries not Linking Correctly
body: <p>I tried to link SDL_mixer, SDL_ttf, and SDL_image to my project, but for some reason, these errors pop up when compiling my code. The header files that I included depend on the libraries above it. I linked to my library in this order:</p>
  
  <p>MinGW32
  OpenGL32
  SDLmain
  SDL
  SDL_image
  SDL_ttf
  SDL_mixer</p>
  
  <pre><code>#include &lt;map&gt;
  #include &lt;string&gt;
  #include &lt;sstream&gt;
  #include &lt;fstream&gt;
  #include &lt;iostream&gt;
  #include &lt;GL/gl.h&gt;
  #include &lt;SDL/SDL.h&gt;
  #include &lt;SDL/SDL_opengl.h&gt;
  #include &lt;SDL/SDL_image.h&gt;
  #include &lt;SDL/SDL_mixer.h&gt;
  #include &lt;SDL/SDL_ttf.h&gt;
  
  using namespace std;
  
  #include "include_file.h"
  #include "structure.h"
  #include "player.h"
  #include "healthclass.h"
  #include "items.h"
  #include "loadfiles.h"
  #include "init_game.h"
  #include "missions.h"
  </code></pre>
  
  <p>Then the error:</p>
  
  <pre><code>obj\Release\main.o:main.cpp:(.text+0x16e): undefined reference to `Mix_LoadMUS'
  obj\Release\main.o:main.cpp:(.text+0x197): undefined reference to `Mix_LoadWAV_RW'
  obj\Release\main.o:main.cpp:(.text+0x1c0): undefined reference to `Mix_LoadWAV_RW'
  obj\Release\main.o:main.cpp:(.text+0x1e9): undefined reference to `Mix_LoadWAV_RW'
  obj\Release\main.o:main.cpp:(.text+0x7cd): undefined reference to `IMG_Load'
  obj\Release\main.o:main.cpp:(.text+0x996): undefined reference to `TTF_RenderUTF8_Shaded'
  obj\Release\main.o:main.cpp:(.text+0x20ca): undefined reference to `Mix_CloseAudio'
  obj\Release\main.o:main.cpp:(.text+0x20cf): undefined reference to `TTF_Quit'
  obj\Release\main.o:main.cpp:(.text+0x2f7b): undefined reference to `IMG_Load'
  obj\Release\main.o:main.cpp:(.text+0x3788): undefined reference to `TTF_Init'
  obj\Release\main.o:main.cpp:(.text+0x37ac): undefined reference to `Mix_OpenAudio'
  obj\Release\main.o:main.cpp:(.text+0x3914): undefined reference to `TTF_OpenFont'
  obj\Release\main.o:main.cpp:(.text+0x3983): undefined reference to `Mix_PlayMusic'
  obj\Release\main.o:main.cpp:(.text+0x61f0): undefined reference to `Mix_PlayChannelTimed'
  obj\Release\main.o:main.cpp:(.text+0x6330): undefined reference to `Mix_Playing'
  </code></pre>