Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Spankenstein

Pages: [1]
1
General / Problems setting up SFML RC2.0 VS2010
« on: August 21, 2012, 01:33:48 pm »
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.zip

I 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.

Pages: [1]
anything