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

Author Topic: Installing SFML in VS 2010  (Read 3615 times)

0 Members and 1 Guest are viewing this topic.

litedrive

  • Newbie
  • *
  • Posts: 2
    • View Profile
Installing SFML in VS 2010
« on: December 03, 2011, 06:57:09 pm »
Before anyone mentions it, I've already followed the directions listed a http://www.sfml-dev.org/forum/viewtopic.php?p=8576, and unfortunately, they didn't work. My errors are the following:

Code: [Select]
Error 1 error LNK2019: unresolved external symbol "void __cdecl sf::Sleep(float)" (?Sleep@sf@@YAXM@Z) referenced in function _main c:\Users\Owner\documents\visual studio 2010\Projects\Engine\Engine\main.obj Engine
Error 2 error LNK2019: unresolved external symbol "public: float __thiscall sf::Clock::GetElapsedTime(void)const " (?GetElapsedTime@Clock@sf@@QBEMXZ) referenced in function _main c:\Users\Owner\documents\visual studio 2010\Projects\Engine\Engine\main.obj Engine
Error 3 error LNK2019: unresolved external symbol "public: __thiscall sf::Clock::Clock(void)" (??0Clock@sf@@QAE@XZ) referenced in function _main c:\Users\Owner\documents\visual studio 2010\Projects\Engine\Engine\main.obj Engine
Error 4 error LNK1120: 3 unresolved externals c:\users\owner\documents\visual studio 2010\Projects\Engine\Debug\Engine.exe 1 1 Engine


Could someone help me out with this? Any help would be greatly appreciated.
 :D

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Installing SFML in VS 2010
« Reply #1 on: December 03, 2011, 11:09:00 pm »
You must link to sfml-system.
Laurent Gomila - SFML developer

kasumi111

  • Newbie
  • *
  • Posts: 5
    • View Profile
Installing SFML in VS 2010
« Reply #2 on: December 20, 2011, 08:59:01 am »
Hi. I have other problem. There are no problems with compilation but  I can not run the program because it can not find "sfml-system-d.dll" file. Does anyone know where to put this file so that it was visible for VS?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Installing SFML in VS 2010
« Reply #3 on: December 20, 2011, 09:32:03 am »
It must be in the working directory. Copy it to the directory where your executable is, and make sure that the "working directory" property of your VS project is the executable directory (sometimes it's the project directory).
Laurent Gomila - SFML developer

kasumi111

  • Newbie
  • *
  • Posts: 5
    • View Profile
Installing SFML in VS 2010
« Reply #4 on: December 20, 2011, 07:58:19 pm »
thx for the advice! It was very helpful!