Linking OpenGL

Started by
0 comments, last by Sponji 10 years, 8 months ago

I'm linking mingw, opengl, glfw, glu32, glew32s, and freetype. So far this is what I have (glfw3 is the name of the lib, it's not suppost to be glfw32):

-lmingw32
-lopengl32
-lglfw3
-lglu32
-lglew32s
-lfreetype

I get all these errors that certain functions are not linked correctly. What is the correct order for linking?

Advertisement

I think this could probably help: http://www.mingw.org/wiki/The_linker_consistently_giving_undefined_references

So, at least opengl32 should be somewhere in the end, because other libraries depend on it.

I would try something like this:


-lmingw32 -lglfw3 -lglew32s -lglu32 -lopengl32 -lfreetype

Derp

This topic is closed to new replies.

Advertisement