title: Missing objects in SDL2.0.2 installation for Ubuntu
body: <p>I installed SDL2 in Ubuntu, and I've been having trouble getting the sample program that comes with it to work.  Here are the errors that appear.</p>
  
  <pre><code>|In function ‘int main(int, char**)’:|
  ‘SDL_HWSURFACE’ was not declared in this scope|
  ‘SDL_DOUBLEBUF’ was not declared in this scope|
  ‘SDL_SetVideoMode’ was not declared in this scope|
  ‘SDL_Flip’ was not declared in this scope|
  ||=== Build finished: 4 errors, 0 warnings ===|
  </code></pre>
  
  <p>Here is my header (I added SDL_image in case there were some issues, but it didn't change anything).</p>
  
  <pre><code>#ifdef __cplusplus
      #include &lt;cstdlib&gt;
  #else
      #include &lt;stdlib.h&gt;
  #endif
  #ifdef __APPLE__
  #include &lt;SDL/SDL.h&gt;
  #else
  #include &lt;SDL.h&gt;
  #endif
  #ifdef _SDL_imageH
  #include &lt;SDL_image.h&gt;
  #endif
  </code></pre>
  
  <p>Here are the libraries I included in the linker settings:</p>
  
  <pre><code>libSDL2.a
  libSDL2main.a
  libSDL2_image.a
  libz.a
  </code></pre>
  
  <p>I added on those libraries consecutively, but none of them seemed to help my program run.  Below are the other linker options:</p>
  
  <pre><code>-lmingw32
  -lSDL2main
  -lSDL2
  -mwindows
  -lm
  -ldinput8
  -ldxguid
  -ldxerr8
  -luser32
  -lgdi32
  -lwinmm
  -limm32
  -lole32
  -loleaut32
  -lshell32 -lversion -luuid -static-libgcc
  </code></pre>
  
  <p>I also included in the compiler search directories <code>/usr/local/include/SDL2</code>.</p>
  
  <p>I also tried <code>-lmingw64</code> as I have a 64-bit compiler, although I don't know whether or not that option is available to me, but I suspect my compiler may be the problem.</p>
  
  <p>Another issue is that when I run <code>grep -r SDL_HWSURFACE /usr/</code> none of the files in the directory (or other directories I've searched) have that text other than the main.cpp file that is used to generate the test sample.</p>
  
  <p>The location of the first two errors are in this line</p>
  
  <pre><code>SDL_Surface* screen = SDL_SetVideoMode(640, 480, 16,
                                         SDL_HWSURFACE|SDL_DOUBLEBUF);
  </code></pre>
  
  <p>although I don't think that is extremely relevant. </p>