Jump to content
  • Advertisement
Sign in to follow this  
rosicky2005

Is this a problem?(about GL compling)

This topic is 4302 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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>

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!