Advertisement

Is this a problem?(about GL compling)

Started by September 08, 2006 03:21 AM
1 comment, last by BornToCode 18 years, 2 months ago
After installing OpenGL, I found a prpblem. When I include gl.h in the directory /%complier/include/GL, many errors pop up. If I remove the file, then everything works ok!!Why this happen?I am so confused My /%complier/include/GL have the following files, glew.h,,glu.h,glut.h My sequence including the file is: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #include <GL/glew.h> #include <GL/gl.h> #include <GL/glu.h> #include <GL/glut.h>
If you're on windows, you need to #include <windows.h> before all the opengl #includes. Not exactly sure why, but you do.

Degra
Advertisement
did you try to include the windows.h before you include any of your gl files.

This topic is closed to new replies.

Advertisement