I have an issue, even if it's not a big deal. And maybe it's just due to my messy installation of SMFL.
When I launch the tutorial example :
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(300, 200), "SFML works!");
sf::Text text("Hello SFML");
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.draw(text);
window.display();
}
return 0;
}
I get a run-time error. The window appears properly and the text is well displayed. But when I close the window, I get a segfault error (-1073741823). Why is that ?
I'm on Windows 7 64-bits, and compile with gcc 4.6.something.
Thx and nice job!