title: How to compile SFML with MinGW?
body: <p>I have a simple file "main.cpp" seen below. I also have all the sfml 2.1 libraries under "C:\SFML-2.1\". My question is: What are the commands to compile, link, and run this project? I'm very comfortable using g++ to compile projects from the command line, but have never done so with any external libraries (such as sfml) before. Any help would be greatly appreciated. Thanks.</p>
  
  <pre><code>#include &lt;SFML/Window.hpp&gt;
  
  int main()
  {
      sf::Window window(sf::VideoMode(800, 600), "My window");
      while (window.isOpen())
      {
          sf::Event event;
          while (window.pollEvent(event))
          {
              if (event.type == sf::Event::Closed)
                  window.close();
          }
      }
      return 0;
  }
  </code></pre>