View Full Version : Error: GL 1.1 and up are not supported

duck bong
04-25-2006, 11:47 PM
I'm a beginner programmer trying to get my first shader to run in my OpenGL application.

I have included <GL/glew.h> (before glut), installed the dll file into SYSTEM32, the glew32.lib in LIB and glew32.h etc in include. I have also set linker to read glew32.lib

If I run this code in my main function to identify the problem:

/************************************************** ***********/

int main(int argc, char *argv[])
glutInit(&argc, argv);

GLenum err = glewInit();
if (GLEW_OK != err)
fprintf(stderr, "Error: %s\n", glewGetErrorString(err));
fprintf(stdout, "Status: Using GLEW %s\n", glewGetString(GLEW_VERSION));

...so on ------

it returns the error message:

ERROR: GL 1.1 and up are not supported
I need your help. Really thanks in advance.

04-26-2006, 12:54 AM
glutInit() does not initialize OpenGL, glutInitDisplayMode() does.
glewInit() has to be done after that.

04-26-2006, 01:28 AM
glutInitDisplayMode doesn't either, you need to wait until after glutCreateWindow...

This error can also be caused by using an old version of GLEW with an OpenGL 2.0 driver.

duck bong
04-26-2006, 07:43 PM
Really thanks,
I finally solved the problem.

Yes, It was the problem using an old version of GLEW with an openGL 2.0 driver.

really thanks.