I have downloaded the RC version of SFML for Visual Studio C++ 2010
http://www.sfml-dev.org/download/2.0-rc/SFML-2.0-rc-windows-32-vc2010.zipI have followed the instructions on this page for the static library linking.
I have created a new console project with the code from the setup guide:
#include "stdafx.h"
#include <SFML/Graphics.hpp>
int _tmain(int argc, _TCHAR* argv[])
{
sf::RenderWindow window(sf::VideoMode(300, 200), "SFML works!");
sf::Text text("Hello SFML");
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.draw(text);
window.display();
}
return 0;
}
I will not compile because of the following error:
Error 1 error LNK2001: unresolved external symbol "public: static class sf::RenderStates const sf::RenderStates::Default" (?Default@RenderStates@sf@@2V12@B)
I have cleaned and rebuilt the project and it doesn't solve the issue.
I have a NVIDIA GeForce GTX680 graphics card with the latest drivers.
I'm running Windows 7 64-bit#
All configurations include 'SFML_STATIC' as a preprocessor definition.