title: Eclipse SDL build error: "The program specified in the launch configuration does not exist"
body: <p>I've tried working some SDL on my set-up eclipse, and as I tried running it it gave me the following error:</p>
  
  <pre><code>  'Launching SDL.exe' has encountered a problem.
    The program specified in the launch configuration does not exist
  </code></pre>
  
  <p>I instantly went to another project to see if it builds, and it did. I also tried re-building, debugging the SDL project. I don't know if it's an error in code but just in case, this is the code:</p>
  
  <pre><code>#include "SDL/SDL.h"
  #include &lt;string&gt;
  #include &lt;SDL/SDL_image.h&gt;
  
  SDL_Surface *load_image( std::string filename ) {
      SDL_Surface* loadedImage = NULL;
      SDL_Surface* optimizedImage = NULL;
  
      loadedImage = IMG_Load(filename.c_str());
      if(loadedImage != NULL) {
          optimizedImage = SDL_DisplayFormat(loadedImage);
          SDL_FreeSurface(loadedImage);
      }
      return optimizedImage;
  }
  </code></pre>
  
  <p>I've googled it, and there's a duplicate question on stackOverFlow <a href="https://stackoverflow.com/questions/6222609/eclipse-run-configuration-program-does-not-exist-but-it-does">here</a>, however it has 0 answers, not even a comment. There are no answers on google regarding this problem, so if you'd answer it, you'd probably solve hours of headaches for more people.</p>