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: #include <OpenGL/gl.h>
Sometimes having your own "OpenGL.h" header with the following can help to alleviate these problems: #ifdef __APPLE__ # include <OpenGL/gl.h> #else # ifdef _MSC_VER # define NOMINMAX # include <windows.h> # endif # include <GL/gl.h> #endif Mike Jackson www.bluequartz.net On Thu, Aug 28, 2008 at 7:54 AM, Fernando Cacciola < [EMAIL PROTECTED]> wrote: > Hi there, > > While I am not a mac user myself, users reported to me that at > least in Tiger and Leopard, gl.h is located in directory GL > (as in any other *NIX), not directory OpenGL. > > Is this a bug in the module? Or are there OS X systems out there where gl.h > is located under OpenGL? > > TIA > > Fernando Cacciola >
_______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
