Hi im getting the following compiling error everytime i try to run opengl
c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1) : warning C4182: #include nesting level is 363 deep; possible infinite recursion
c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1) : fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit
Error executing cl.exe.
Have you changed anything in gl.h at all? It shouldn’t have any #includes in it so make sure it doesn’t.
Also make sure that you don’t have any problems with other #include’d files in your application - if you don’t prevent recursive includes with “#pragma once” or a surounding #ifdef, then you’ll get this type of error. It’s possibly nothing to do with gl.h but maybe in another header where you reference it.
Thanks.When i click on the error message it brings me into the glut.h source code and points to #include<gl/gl.h>.I have tried everything to fix the error.Do you know what is the best thing to do is.
I can’t for the moment think of any situation where this shouldn’t work (that doesn’t mean there isn’t one!). If you still can’t get it compiling, post your code so we can take a look.