c++ - Having trouble with compiling this code -


i'm working on simple glfw project. find need both <gl/glfw.h> , <gl/glfw3.h> headers able use things. when include both of these headers together, i'm getting error:

error: conflicting declaration 'typedef void (*glfwwindowsizefun)(glfwwindow*, int, int)'

and points glfw3.h source code there exact typedef above.

has ever experienced this? how go fixing it?

why think need both glfw.h , glfw3.h? don't. headers different versions of glfw library. use header library version want use (and 1 link).


Comments

Popular posts from this blog

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -