This is my code and I got the error
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(640,480), "Test");
sf::Font font;
if(!font.loadFromFile("arial.ttf"))
return EXIT_FAILURE;
sf::Text text;
text.setString("Hello");
text.setFont(font);
text.setCharacterSize(30);
text.setStyle(sf::Text::Bold);
text.setColor(sf::Color::Red);
while(window.isOpen())
{
sf::Event event;
while(window.pollEvent(event))
{
if(event.type == sf::Event::Closed)
window.close();
if(sf::Keyboard::isKeyPressed(sf::Keyboard::Escape))
window.close();
}
window.clear(sf::Color::Black);
window.draw(text);
window.display();
}
}
obj\Debug\Main.o||In function `main':|
C:\Documents and Settings\TAE\My Documents\SFML\SAMPLE\Main.cpp|11|undefined reference to `_imp___ZN2sf6StringC1EPKcRKSt6locale'|
||=== Build finished: 1 errors, 0 warnings ===|