Hello, I am trying to use the SFML libraries in CodeLite using MinGW. I'm pretty familiar with SFML itself but I'm having trouble getting it to work in MinGW. I can build the program but when I run it I get "main.cpp has stopped responding." Here is my code:
#define SFML_STATIC
#include <iostream>
#include <SFML/Graphics.hpp>
#include <SFML/System.hpp>
#include <SFML/Window.hpp>
int main()
{
sf::Window window(sf::VideoMode(800, 600), "POS");
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
}
return 0;
}
Here is a screenshot of my build settings (this is the only part that's not default):
Here is a screenshot of the project settings, showing include paths and the preprocessor command:
Here is more of the project settings, showing the project-specific libraries search path and the Libraries section.
I have tried using "sfml-xxxxx," "sfml-xxxxx-d," "sfml-xxxxx-s," "sfml-xxxxx-s-d" in the Libraries section, and when I build and run the program, I always get this:
Other things:
-I'm using Windows 10 64-bit.
-I have tried these resources, among others:
https://en.sfml-dev.org/forums/index.php?topic=18820.0,
https://en.sfml-dev.org/forums/index.php?topic=11284.0,
https://stackoverflow.com/questions/35712754/sfml-applications-has-stopped-respondingHopefully someone can help. Thanks!