Hey,
firstly sorry for the bad english
OS: Windows
Compiler: tdm-gcc
SFML compiled with this compiler
When i try to run the compile command:
g++ main.cpp -Isfml/include -Lsfml/lib -lsfml-graphics-s -DSTATIC_SFML
It gives me error messages like:
undefined reference to `__imp__ZN2sf6StringC1EPKcRKSt6locale'
several times
this is the code:
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
sf::CircleShape shape(100.f);
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 hope someone can help me.