title: SDL_DisplayFormat not declared in this scope: Using SDL2
body: <p>Compiler doesn't return missing SDL.h, but rather that SDL_DisplayFormat is not declared in scope of a class member function located on a different header even though I have it initialized in main.</p>
  
  <pre><code>SDL_Surface *SpriteLoad::Load(char *File)
  {
      SDL_Surface *temp = NULL;
      SDL_Surface *opt = NULL;
  
      if ((temp = IMG_Load(File)) == NULL)
      {
          return NULL;
      }
  
      opt = SDL_DisplayFormat(temp);
      SDL_FreeSurface(temp);
  
      return opt;
  }
  </code></pre>
  
  <p>Where my main inits SDL through a class and member function:</p>
  
  <pre><code>int main (int args, char *argc[])
  {
      bool quit = false;
  
      OnRun Game;           // Class that init's SDL
      Window TestWin;
  
      GlobalTimer fps;
      TestWin.Debug();
  </code></pre>
  
  <p>I'm able to create a window using SDL_Window using that Class and also use SDL_GetTick. </p>
  
  <p>EDIT: Headers used for Sprite::Load are currently SDL, SDL_image, SDL_ttf, and SDL_mixer pulled and built from the mercurial repo. I do not think it's a linking error though</p>