problems with SFML

hello i have just started learning to work with the SFML library
but it doesn't work yet. i was following this tutorial: http://sfml-dev.org/tutorials/1.6/start-vc.php
and this is my code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <SFML/System.hpp>
#include <iostream>

int main()
{
    sf::Clock Clock;
    while (Clock.GetElapsedTime() < 5.f)
    {
        std::cout << Clock.GetElapsedTime() << std::endl;
        sf::Sleep(0.5f);
    }

    return 0;
}

and these are my errors:

sfml.obj : error LNK2019: unresolved external symbol "void __cdecl sf::Sleep(float)" (?Sleep@sf@@YAXM@Z) referenced in function _main
1>sfml.obj : error LNK2019: unresolved external symbol "public: float __thiscall sf::Clock::GetElapsedTime(void)const " (?GetElapsedTime@Clock@sf@@QBEMXZ) referenced in function _main
1>sfml.obj : error LNK2019: unresolved external symbol "public: __thiscall sf::Clock::Clock(void)" (??0Clock@sf@@QAE@XZ) referenced in function _main
1>c:\users\jannes\documents\visual studio 2010\Projects\sfml\Debug\sfml.exe : fatal error LNK1120: 3 unresolved externals

can someone please tell me what i'm doing wrong or why he gives me those errors?
Last edited on
Are you linking the SFML libraries? It seems the linker isn't finding them.
found the problem. downloaded some wrong version of SFML...
Topic archived. No new replies allowed.