SFML forum,
Windows 7, CodeLite 9.2.5, TDM-GCC-64, SFML-2.3.1
As soon as a window opens my program exits with the message:
"SFML-Demo has stopped working"
No error messages from the compiler.
Here's the code:
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow 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();
}
}
window.display();
}
}
Any suggestions?
Jerry D.