Jump to content
  • Advertisement
Sign in to follow this  
rosicky2005

Is this a problem?(about GL compling)

This topic is 4395 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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!