Hello,
When I try to draw text to the screen, running in release or debug gives me the errors:
Error 1 error LNK2001: unresolved external symbol "public: static class sf::RenderStates const sf::RenderStates::Default" (?Default@RenderStates@sf@@2V12@B) E:\Visual Studio 2010\Projects\flaccy frame\flaccy frame\main.obj flaccy frame
and
Error 2 error LNK1120: 1 unresolved externals E:\Visual Studio 2010\Projects\flaccy frame\Debug\flaccy frame.exe flaccy frame
I'm pretty new to this but i'm pretty sure I have everything set up correctly, it's the only thing that has returned an error so far.
#include <SFML/Graphics.hpp>
int main()
{
sf::VideoMode vMode( 800, 600, 32 );
sf::RenderWindow window( vMode, "Flaccy" );
sf::Text text("hello");
while ( window.isOpen() )
{
sf::Event event;
while ( window.pollEvent(event) )
{
switch ( event.type )
{
case sf::Event::Closed:
window.close();
break;
default:
break;
}
}
window.clear( sf::Color( 255, 0, 0 ));
window.draw(text);
window.display();
}
return 0;
}
Visual Studio 2010 | C++ | Windows 7 x64 | GTX 570 | SFML 2.0 (downloaded it fresh yesterday)
Any help is greatly appreciated thanks...