GLEW and GLFW

anonymous wrote on Monday, May 09, 2011:

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?

anonymous wrote on Monday, May 09, 2011:

Here’s the link, since it’s malformed above: http://switch.tk/190

elmindreda wrote on Monday, May 09, 2011:

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.

elmindreda wrote on Monday, May 09, 2011:

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.

anonymous wrote on Monday, May 09, 2011:

All my OpenGL related files are under my gl/ folder, and this includes
gl/glu/glfw/glew.

elmindreda wrote on Tuesday, May 10, 2011:

Where did your glu.h header come from?

anonymous wrote on Tuesday, May 10, 2011:

the glu/gl headers came with the VC++ 2010 installation in the includes/gl/
location