Message from C, C++ talks
That's good, but just for you to know what the cause of the error was, i'll explain it for you:
-First of all It was a Linking error.
-Since you are using glfw to create windows (which uses gdi32 functions under the hood), you have to tell the compiler to link it the program as if it were a Windowed App, and this is done by adding the
in gcc or g++
Hope this help