OpenGL functions are not part of glfw. You link to OpenGL library to get them. On Windows GL 1.1 functions are in OpenGL32.dll file.
To link to OpenGL32.dll file add -lopengl32
linker argument - it will make mingw to use libopengl32.a import library.