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:
The program can't start because sfml-graphics-2.dll is missing from
your computer. Try reinstalling the program to fix this problem.
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
if (event.type == sf::Event::Closed)
SFML is dynamically linked by default, which means that you need to place sfml-graphics-2.dll (along with the dll files of any other SFML subsystems you use) inside the same directory as your executable.