I’m trying to use GLEW with my GLFW project, and so far, haven’t gotten any
way to resolve it. The way I do it is:
#include <gl/glfw.h>
#include <gl/glew.h>
With this, I get an error saying gl.h is defined already. If I switch the
order, I get a whole slew of errors. There is more information on the errors
I’m getting here: http://switch.tk/190. How can I get it to have both GLEW
and GLFW?
Where did your glu.h header come from? My installation of VS 2010 does not
have any glu.h header in that location, but instead uses one of the two from
\Program Files\Microsoft SDKs. These are identical and I cannot get the error
messages you linked to match these files in any meaningful way.
I’ll add that I’ve used GLEW and GLFW together for a number of years, using VS
2005, 2008 and 2010, MinGW, Cygwin, and both GCC and Clang on both Linux and
Mac OS X, all without having encountered as much as a warning, so your
environment is probably unusual in some way.