Beginner: OpenGL Programming on XCode

I just got my new Powerbook last month which is second mac after AppleIIe about 20 years ago. I decide to begin using OSX since it’s finally UNIX.

The problem is that when I try to compile the program which runs fine in my windows, it keeps making errors and I don’t know how to resolve this issue. Looks like that the problem is about locating library files (glut32.dll) but I am not sure. Could anyone give me an advice on this one?

Here is the screenshot.

Thanks in advance.

doesn’t look like a library problem. seems that you didn’t include the opengl header files. try adding


On OS X the include paths are <OpenGL/gl.h> and <GLUT/glut.h>

You also need to link against the OpenGL and GLUT frameworks, not the windows glut32.dll.

Thanx guys it works and helped me a lot.

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