[ACCEPTED]-GLFW - Failed To Open A Window-glfw

Accepted answer
Score: 60

You need to link to opengl32.lib.

For that, as pictured 8 below, go to Project Setting and then Linker > input > Additional Dependencies and add opengl32.lib there (use 7 ; to separate different libs).

Note that 6 you don't actually need to have opengl32.lib file anywhere. Visual 5 Studio knows where to find it.

Linking to extra libs in Visual Studio

Edit: I should 4 note that you don't need to do anything 3 except adding opengl32.lib. That other stuff is irrelevant. Additionally, if 2 both are present, try swapping the order, which 1 matters in some cases.

More Related questions