I tried the version 2.4.1, with this code:
#include <SFML/Graphics.hpp>
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;
}
It's directly taken from the learn page of this site. I use Code::Blocks with the dynamic version of the sfml. There was no compile errors, but instead of having a green CircleShape, the window was blank. In the console, it was written this message: "Failed to open window's context" that usually appears in multi threading or something like that. And the message was written over and over, at each frame.