SFML community forums

Help => System => Topic started by: litedrive on December 03, 2011, 06:57:09 pm

Title: Installing SFML in VS 2010
Post by: litedrive 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
Title: Installing SFML in VS 2010
Post by: Laurent on December 03, 2011, 11:09:00 pm
You must link to sfml-system.
Title: Installing SFML in VS 2010
Post by: kasumi111 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?
Title: Installing SFML in VS 2010
Post by: Laurent 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).
Title: Installing SFML in VS 2010
Post by: kasumi111 on December 20, 2011, 07:58:19 pm
thx for the advice! It was very helpful!