Sign in to follow this  
phil67rpg

include error

Recommended Posts

phil67rpg    443
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
jyk    2094
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
fastcall22    10839
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this