How to Compile opengl applications under MAC OS X?

I am trying to compile some simple opengl applications( written by myself) in MAC OS X platform. I guess one way is to build the projects under Cocoa. But is there any specific compiler for OpenGL in MAC OS X?

Post this on the Mac forum. You will surely get a reply there.