I was expecting for the code to create a window, I was using SFML in c++, I followed all the steps search on google nobody from what I’ve seen had this problem.
this is the code I used if it helps:
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
while (window.isOpen()) {
sf::Event event;
if (window.pollEvent(event)) {
if (event.type == sf::Event::Closed) {
window.close();
}
}
}
return 0;
}
New contributor
Jonathen Boiragee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.