<div dir="ltr">The header is located in a framework called OpenGL.framework and the include style for frameworks is the name of the framework (minus the extension) and then the header file, so on OS X the proper include would be:<div>
<br></div><div>#include <OpenGL/gl.h></div><div><br></div><div>Sometimes having your own "OpenGL.h" header with the following can help to alleviate these problems:</div><div><br></div><div><div>#ifdef __APPLE__</div>
<div># include <OpenGL/gl.h></div><div>#else</div><div># ifdef _MSC_VER</div><div># define NOMINMAX</div><div># include <windows.h></div><div># endif</div><div># include <GL/gl.h></div><div>#endif</div>
<div><br></div><div>Mike Jackson</div><div><a href="http://www.bluequartz.net">www.bluequartz.net</a></div><br><div class="gmail_quote">On Thu, Aug 28, 2008 at 7:54 AM, Fernando Cacciola <span dir="ltr"><<a href="mailto:fernando.cacciola@gmail.com">fernando.cacciola@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi there,<br>
<br>
While I am not a mac user myself, users reported to me that at<br>
least in Tiger and Leopard, gl.h is located in directory GL<br>
(as in any other *NIX), not directory OpenGL.<br>
<br>
Is this a bug in the module? Or are there OS X systems out there where gl.h is located under OpenGL?<br>
<br>
TIA<br>
<br>
Fernando Cacciola<br></blockquote></div><br></div></div>