Hello. I'm trying to build my project in Visual Studio 2013, however it throws linking errors, such as:
1>sfml-window-s.lib(WglContext.obj) : error LNK2001: unresolved external symbol __imp__wglMakeCurrent@8
1>sfml-window-s.lib(WglContext.obj) : error LNK2001: unresolved external symbol __imp__wglShareLists@8
1>sfml-window-s.lib(JoystickImpl.obj) : error LNK2001: unresolved external symbol __imp__joyGetPosEx@8
1>sfml-window-s.lib(JoystickImpl.obj) : error LNK2001: unresolved external symbol __imp__joyGetDevCapsW@12
1>sfml-system-s.lib(SleepImpl.obj) : error LNK2001: unresolved external symbol __imp__timeGetDevCaps@8
1>sfml-system-s.lib(SleepImpl.obj) : error LNK2001: unresolved external symbol __imp__timeBeginPeriod@4
1>sfml-system-s.lib(SleepImpl.obj) : error LNK2001: unresolved external symbol __imp__timeEndPeriod@4
And there's more.
I'm trying to link against the static libraries I built myself from the source code from the GitHub repository. Here's a short list of steps I followed:
And in my project:
- Copied all header (include) files to an appropriate folder.
- Copied all .lib files to an appropriate folder.
- Set my project to look for headers and .lib files in the appropriate folders.
- Defined all .lib include inputs, as following: sfml-main.lib, sfml-system-s.lib, sfml-window-s.lib, sfml-graphics-s.lib, sfml-audio-s.lib, sfml-network-s.lib for the release version and debug equivalent files (with the -d postfix) for the debug version.
- Added SFML_STATIC flag to preprocessor settings.
Am I missing something? A very similar setup worked fine on Visual Studio 2012 (with everything compiled under VC++ 11). I have no idea why it doesn't work here, any advice would be highly appreciated.