Hello Friends,
When I execute this simple code:
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
sf::CircleShape shape(100.f);
shape.setPosition(0.0f,0.0f);
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;
}
I placed the result I've got in the attachments.
I'm using windows 10 and compiling with mingw:
g++ -c main.cpp -DSFML_STATIC
g++ main.o -o main -lsfml-graphics-s -lsfml-window-s -lsfml-system-s -lgdi32 -lopengl32 -lwinmm
And it gets worse, as you can see I've made the program self sufficient, no dll's needed, when I execute the EXACT SAME PROGRAM in another computer, it works.
Please guys, tell me, what's going on?
It is suppose to show a green circle, centered on the screen.