Jump to content
  • Advertisement
Sign in to follow this  
phil67rpg

include error

This topic is 2781 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

well I get this error.
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\gl\glew.h(84) : fatal error C1189: #error : gl.h included before glew.h
and here is my incude files
#include <windows.h>
#include <math.h>
#include <stdlib.h>
#include <GL\glut.h>
#include <GL\GLTools.h>
#include <GL\glew.h>
#include <GL\gl.h>

I have tried many things but no success.

Share this post


Link to post
Share on other sites
Advertisement
I don't know what rules GLEW enforces as far as inclusions go, but it's likely that gl.h is being included as part of one of the headers you're including before glew.h.

Share this post


Link to post
Share on other sites
Quote:
Original post by phil67rpg
well I put the glew file first and now I get 102 errors.


The platform specific headers (windows.h) need to included before the OpenGL headers (gl.h/glew.h) ...

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!