I am facing a problem building a project that uses GLFW.
What I tried:
- First, I download the source code and built it as library (glfw3.lib). It was successful.
- I tried to build a project that uses this library. I encountered these error messages at the linking phase:
2>glfw3.lib(window.obj) : error LNK2019: unresolved external symbol __imp_strncpy referenced in function glfwWindowHintString
2>glfw3.lib(input.obj) : error LNK2001: unresolved external symbol __imp_strncpy
2>glfw3.lib(monitor.obj) : error LNK2001: unresolved external symbol __imp_strncpy
2>glfw3.lib(win32_joystick.obj) : error LNK2001: unresolved external symbol __imp_strncpy
2>glfw3.lib(context.obj) : error LNK2019: unresolved external symbol __imp___stdio_common_vsscanf referenced in function sscanf
Here is the screen capture, showing the option /MD selected. I read that it could me something related to this option in Code Generation → Runtime Library, but I tried all the options (/MD, /MDd, /MT and /MTd) and none worked.
What can I do to solve this problem? Maybe use a precompiled binary?