title: C++ - SDL not working
body: <p>I've tried to follow <a href="http://lazyfoo.net/SDL_tutorials/lesson01/index2.php" rel="nofollow noreferrer">this</a> tutorial on the basics of displaying an image with SDL.  But, when I run the program, it returns a blank screen.  The image is in the correct directories, but it doesn't display in the program.  Am I doing something wrong? I'd really like SDL to work.</p>
  
  <h2>EDIT</h2>
  
  <p>Here is my code:</p>
  
  <pre><code>#include &lt;SDL/SDL.h&gt;
  
  using namespace std;
  
  int main(int argc, char *argv[])
  {
      SDL_Surface *hello;
      SDL_Surface *screen;
      SDL_Init(SDL_INIT_EVERYTHING);
      screen = SDL_SetVideoMode(640, 480, 32, SDL_SWSURFACE);
      hello = SDL_LoadBMP("hello.bmp");
      SDL_BlitSurface(hello, NULL, screen, NULL);
      SDL_Flip(screen);
      SDL_Delay(2000);
      SDL_FreeSurface(hello);
      SDL_Quit();
      return 0;
  }
  </code></pre>