title: Cannot load an image file as texture using C++ and SFML 2.1
body: <p>I am trying to output an image onto the screen using SFML 2.1, C++, and MS Visual Studio Professional 2013. I am getting an unexpected error when trying to load a file into a texture. It outputs a whole bunch of random characters. I'm sure if its how I configured the SFML library with Visual Studio or a problem with the code. Can anyone solve this problem? Thanks.</p>
  
  <p>Here is a screenshot of what it looks like when I run the program (<a href="https://i.stack.imgur.com/uMdLT.png" rel="nofollow noreferrer">http://i.stack.imgur.com/uMdLT.png</a>):
  <img src="https://i.stack.imgur.com/uMdLT.png" alt=""></p>
  
  <p>This is my code:</p>
  
  <pre><code>#include &lt;SFML/Graphics.hpp&gt;
  #include &lt;iostream&gt;
  #include &lt;string&gt;
  using namespace std;
  
  int main() {
  
      sf::RenderWindow window;
      window.create(sf::VideoMode(800, 600), "My First SFML Game!"); // initializing
  
      sf::Texture jetTexture;
      sf::Sprite jetImage;
  
      // Getting Error here!
      if (!jetTexture.loadFromFile("fighter jet.png"))
          throw std::runtime_error("Could not load fighter jet.png");
  
      jetImage.setTexture(jetTexture);
  
      while (window.isOpen())
      {
          sf::Event event;
          while (window.pollEvent(event))
          {
              if (event.type == sf::Event::Closed)
                  window.close();
          }
          window.draw(jetImage);
          window.display();
      }
  
      return 0;
  }
  </code></pre>
  
  <p>For all configuration properties, they look like this:</p>
  
  <p>Linker -> General (<a href="https://i.stack.imgur.com/NZg7P.png" rel="nofollow noreferrer">http://i.stack.imgur.com/NZg7P.png</a>):
  <img src="https://i.stack.imgur.com/NZg7P.png" alt=""></p>
  
  <p>Linker -> Input (<a href="https://i.stack.imgur.com/1tPaB.png" rel="nofollow noreferrer">http://i.stack.imgur.com/1tPaB.png</a>):
  <img src="https://i.stack.imgur.com/1tPaB.png" alt=""></p>
  
  <p>**Please note that if I did not configured the SFML library as I did, then I would be getting an error from my system saying <code>msvcr110d.dll is missing</code>.</p>