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

Author Topic: Problem with installation *SOLVED*  (Read 5078 times)

0 Members and 1 Guest are viewing this topic.

Heero

  • Newbie
  • *
  • Posts: 3
    • View Profile
Problem with installation *SOLVED*
« on: October 09, 2007, 01:19:19 am »
*SOLVED*

I found the problem, somehow i missed the last part in the tutorial, the Linker part was the problem.
--------------------------------------------------------------------------------------

Just installed SFML and followed the tutorial for VS, but I have problems when I try to compile this code, from the tutorial for VS.

Code: [Select]
#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;
}

I have Visual C++ 2005 Express Edition installed and downloaded "Microsoft Platform SDK for Windows Server 2003 R2" because there where some problems with the "windows.h" file.

But when im trying to compile, this problem occurs

Code: [Select]
[size=9]------Build started: Project: SMFL First Test, Configuration: Debug Win32 ------
Linking...
main.obj : error LNK2019: unresolved external symbol "void __cdecl sf::Sleep(float)" (?Sleep@sf@@YAXM@Z) referenced in function _main
main.obj : error LNK2019: unresolved external symbol "public: float __thiscall sf::Clock::GetElapsedTime(void)const " (?GetElapsedTime@Clock@sf@@QBEMXZ) referenced in function _main
main.obj : error LNK2019: unresolved external symbol "public: __thiscall sf::Clock::Clock(void)" (??0Clock@sf@@QAE@XZ) referenced in function _main
C:\SFML\Projekt\SMFL First Test\Debug\SMFL First Test.exe : fatal error LNK1120: 3 unresolved externals
Build log was saved at "file://c:\SFML\Projekt\SMFL First Test\SMFL First Test\Debug\BuildLog.htm"
SMFL First Test - 4 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========[/size]


Im new to this so I dont know where I should start looking.