You need to link to other Windows libraries if you use GLFW as static library - gdi32.lib and user32.lib. Either add them in project properties for linker “Additional Dependencies” setting.
Or put #pragma comment (lib, "gdi32.lib")
in your .c/.cpp source.
1 Like