On Dec 1, 2007 5:16 AM, Milan Ikits <mikits@...> wrote:
> You cannot use wglew.h on Cygwin, because it is a unix environment. You
> should be using glxew.h instead.
I do however need WGL together with Cygwin. I have successfully build and
used WGL-based programs and ran them from within Cygwin.
Furthermore, glew.c does include wglew.h by itself via glew.h if _WIN32 is
> If you want to use the gcc compiler distributed with Cygwin to compile a
> native win32 version of GLEW, try the -mno-cygwin compiler switch.
I think this is not an option, since I am using other parts of cygwin.
I must admit that I am not that familiar with Cygwin's internals, but just
removing the '!defined(__CYGWIN__)' does the trick. Any reason why it's not
done like this be default? Maybe a define to choose WGL and/or GLX would be