title: Compile and Run SDL On Terminal
body: <p>Ok, so I compiled SDL/C++ on terminal easily by just doing:</p>
  
  <pre><code>g++ main.cpp -o main.out -pthread -std=c++11 `sdl2-config --cflags --libs` .
  </code></pre>
  
  <p>And then this is my main.cpp:</p>
  
  <pre><code>// #include &lt;SDL/SDL.h&gt;
  #include "SDL2.0.4/SDL2-2.0.4/include/SDL.h"
  
  int main(int argc, char** argv)
  {
      SDL_Window *__window;
      //Init SDL
      SDL_Init(SDL_INIT_EVERYTHING);
  
      //Creation Window
      __window = SDL_CreateWindow(
          "Engine",
          SDL_WINDOWPOS_CENTERED,
          SDL_WINDOWPOS_CENTERED,
          640,
          430,
          SDL_SWSURFACE
      );
  
      while(true){
  
      }
      return 0;
  }
  </code></pre>
  
  <p>Well when I do <code>./main.out</code> to run it, it just stops iterating over while loop. There is no window popping up. I am using Ubuntu Linux. And as I said I want to run and compile sdl on terminal, I'm pretty sure I passed the compiling stage, it's the running that's irritating me. </p>