title: how do I eliminate linker error mingw32/bin/ld.exe: cannot find -lSDL
body: <p>I am trying to build <code>SDL</code> for use with Eclipse.  I am trying to remove this linker error:</p>
  
  <p>Beginning Compilation</p>
  
  <pre><code>21:15:53 **** Incremental Build of configuration Debug for project CMD ****
  Info: Internal Builder is used for build
  g++ "-IC:\\MinGW\\include\\SDL2" -O0 -g3 -Wall -c -fmessage-length=0 -o "src\\CMD.o" "..\\src\\CMD.cpp" 
  g++ -o CMD.exe "src\\CMD.o" -lmingw32 -lSDL -lSDL2main -lSDL2 
  </code></pre>
  
  <p>ERROR(s):</p>
  
  <blockquote>
    <p>c:/mingw/bin/../lib/gcc/mingw32/5.3.0/../../../../mingw32/bin/ld.exe: cannot find -lSDL
        collect2.exe: error: ld returned 1 exit status
        21:15:54 Build Finished (took 1s.36ms)</p>
  </blockquote>
  
  <p>The <a href="https://stackoverflow.com/questions/26748878/sdl-linker-error-on-mingw-msys-ld-exe-cannot-find-lsdl--">most pertinent SO archive source I researched</a> didn't seem to have an actionable answer for my problem, though it had the exact same problem/error:
  title -- 
  producing the same error message:</p>
  
  <blockquote>
    <p>c:/mingw/bin/../lib/gcc/mingw32/4.7.0/../../../../mingw32/bin/ld.exe: cannot find -lSDL.</p>
  </blockquote>
  
  <p>If you click to the authors "solution" for the same error as mine its not clear to me how he solved it.</p>
  
  <p>Any help?</p>