I am trying to link basic glfw example(which you could find on GettingStarted page) using clang++(yes, I have written example in the c++) by providing link commands in the terminal (without any IDE or build systems). My problem is following linker errors:
glfw3.lib(window.obj) : error LNK2019: unresolved external symbol __imp_strncpy referenced in function glfwWindowHintString
glfw3.lib(input.obj) : error LNK2001: unresolved external symbol __imp_strncpy
glfw3.lib(win32_joystick.obj) : error LNK2001: unresolved external symbol __imp_strncpy
glfw3.lib(context.obj) : error LNK2019: unresolved external symbol __imp___stdio_common_vsscanf referenced in function sscanf
glfw3.lib(input.obj) : error LNK2019: unresolved external symbol __imp_strspn referenced in function glfwUpdateGamepadMappings
it is basically 3 missing implementations of external functions: strncpy, _stdio_common_vsscanf, strspn; as I understand they all belongs to Windows CRT library, but inlcuding [ libucrt.lib ] or [ ucrt.lib ] does NOT solve this problem (but makes everything even worse). I am not sure does libucrt.lib and ucrt.lib inplements this functions, because microsoft itself does not explicitly specify those functions library in the documentation(bstrds).
Btw, already included libraries are: glfw3 opengl32 user32 gdi32 shell32 kernel32; as I understand this is a default set to build program using glfw on windows platform.
I would appreciate if you help me to solve this problem - I have run out of ides.
P.S I link with glfw.lib, which has been compiled in VS2019 without any cmake options or changes - the only action I did was setting up Release mode, x64 target platform mode, and building glfw ONLY.
I wish I could build things without Cmake and Visual Studio, but hey - it is a world where we live.