SFML community forums
Help => System => Topic started 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:
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
-
You must link to sfml-system.
-
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?
-
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).
-
thx for the advice! It was very helpful!