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
Post a Comment