title: Undefined reference to SDL_Init with Qt Creator
body: <p>I'm trying to build the following basic SDL2 application with <em>Qt Creator</em> (<em>Qt 5.1.1</em>).</p>
  
  <p><strong>SDLTest.pro :</strong></p>
  
  <pre><code>TARGET = SDLTest01
  CONFIG   += console
  
  TEMPLATE = app
  
  INCLUDEPATH += C:\Users\Martin\code\libs\SDL2-2.0.1\x86_64-w64-mingw32\include
  LIBS += -LC:\Users\Martin\code\libs\SDL2-2.0.1\x86_64-w64-mingw32\lib -lSDL2
  
  SOURCES += main.cpp
  </code></pre>
  
  <p><strong>main.cpp :</strong></p>
  
  <pre><code>#include &lt;SDL2/SDL.h&gt;
  
  #include &lt;QCoreApplication&gt;
  #undef main
  int main(int argc, char *argv[])
  {
      QCoreApplication a(argc, argv);
  
      if( SDL_Init( SDL_INIT_EVERYTHING ) == -1 )
          return 1;
  
      return a.exec();
  }
  </code></pre>
  
  <p>But I have the following error:</p>
  
  <pre><code>undefined reference to `SDL_Init'
  </code></pre>
  
  <p>The same code with the according reference compile ok with <em>SDL 1.2</em>.</p>
  
  <p>Any idea?</p>