sfml::Font font;
font.loadFromFile("C:\\WINDOWS\\Fonts\\Arial.ttf");
sfml::Text text;
text.setFont(font);
text.setCharacterSize(30);
text.setStyle(sfml::Text::Bold);
text.setColor(sfml::Color::Blue);
text.setString("example");
window.draw(text);
I'm getting the following error:
C:\DOCUME~1\STANIS~1\LOCALS~1\Temp\ccFZolgr.o:main.cpp:(.text+0x476d): undefined
reference to `__imp___ZN2sf6StringC1ERKSsRKSt6locale'
collect2.exe: error: ld returned 1 exit statusIf i comment the setString() line it compiles without any errors. What's the problem?