🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Is this a problem?(about GL compling)

Started by
1 comment, last by BornToCode 17 years, 10 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>
Advertisement
If you're on windows, you need to #include <windows.h> before all the opengl #includes. Not exactly sure why, but you do.

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

This topic is closed to new replies.

Advertisement