title: SFML 2.1 and Codeblocks Error: sfml-graphics-2.dll is missing from your computer
body: <p>I've just begun to use c++ and SFML, and everything FINALLY ran fine. Before I would get Undefined Reference Errors, but I realized that I had been downloading the wrong type of SFML, getting SJLJ instead of DW2. The problem was fixed, but was replaced with another; now whenever I run an SFML program, it opens a small windows: </p>
  
  <p>It says:</p>
  
  <blockquote>
    <p>The program can't start because sfml-graphics-2.dll is missing from
    your computer. Try reinstalling the program to fix this problem.</p>
  </blockquote>
  
  <p>And then when you press "Ok" or closed the window, the program would stop working. NOT TO BE CONFUSED: the program never opened, on the console did.</p>
  
  <p>Here is the Code (probably useless) directly copied and pasted from the codeblocks tutorial site: </p>
  
  <p><div class="snippet" data-lang="js" data-hide="true">
  <div class="snippet-code snippet-currently-hidden">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>#include &lt;SFML/Graphics.hpp&gt;
  
  int main()
  {
      sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
      sf::CircleShape shape(100.f);
      shape.setFillColor(sf::Color::Green);
  
      while (window.isOpen())
      {
          sf::Event event;
          while (window.pollEvent(event))
          {
              if (event.type == sf::Event::Closed)
                  window.close();
          }
  
          window.clear();
          window.draw(shape);
          window.display();
      }
  
      return 0;
  }</code></pre>
  </div>
  </div>
  </p>