glutCreateWindow failing

i’m new to opengl, and i’m having trouble getting glut to work. i’ve some ridiculously simple sample code that’s supposed to put up a window and draw into it. when it gets to glutCreateWindow, though, it’s exiting. the glut_error_log contains:

GLUT: Fatal Error in MacOS Toolbox DEBUG PPC: window could not be created.

is there something really obvious i’m missing? do the console arguments that it prompts when the program starts get used for anything?

Have you added the glut resource file (glut.rsrc) and all necessary libraries to your project?
If yes, try increasing the heap size of your application.

Hope this helps,
Andy

ah, that worked perfectly. thanks a lot. i never noticed that rsrc file there.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.