GLFW Won't Link Correctly

Solution 1:

Your static GLFW library is compiled with the _GLFW_NO_DLOAD_WINMM compile-time macro enabled. This and other such macros may be found in the GLFW config header.

Defining this causes GLFW to assume that you will be linking against winmm (winmm.lib on Visual C++ or libwinmm.a on MinGW). This is not the default setting for the static version of the library, so I assume you have compiled it yourself. You can either add winmm to your link-time dependencies or not define _GLFW_NO_DLOAD_WINMM when compiling GLFW.

Either solution should make your program link.