Is this a problem?(about GL compling)
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
Degra
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement