I'm using SFML 2.1 (SJLJ) for Windows / GCC (32bit) and am building the project in CodeBlocks 10.05.
I'm trying to run the following code and it crashes. It builds smoothly however.
#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;
}
Many may recognize that this is taken directly from the SFML 2.1 tutorial site so I doubt there is anything wrong with the code. I've followed all instructions carefully but I have no clue what's causing it.
Some screenshots showing the build options and the actual error output are provided below:
(http://i.stack.imgur.com/9CcIC.jpg)
(http://i.stack.imgur.com/XRN9h.jpg)
(http://i.stack.imgur.com/lEKiI.jpg)
(http://i.stack.imgur.com/UVYul.jpg)
(http://i.stack.imgur.com/44GUr.jpg)
(http://i.stack.imgur.com/wzRi9.jpg)