title: SDL2 won't link properly
body: <p>I'm using Code::Blocks, that's my code:</p>
  
  <pre><code>#include "SDL2/SDL.h"
  int main(int argc, char* args[]) {
      SDL_Init( SDL_INIT_EVERYTHING );
      SDL_Quit();
      return 0;
  }
  </code></pre>
  
  <p>I'm building like:</p>
  
  <pre><code>mingw32-g++.exe -o C:\..\main.exe C:\..\main.o  -lmingw32 -lSDL2main -lSDL2
  </code></pre>
  
  <p>And getting that:</p>
  
  <pre><code>undefined reference to "SDL_Init"
  undefined reference to "SDL_Quit"
  </code></pre>
  
  <p><s>I'm pretty sure the linker finds the libs cause if I change them to something random it complains "can't find whatever".</s></p>