openGL in Codewarrior

I’m new to openGL and I can’t seem to get codewarrior 7.0 to compile openGL proporly. The program seems to run but it only displays a black screen. It is my first try programing openGL so I might be missing a command or something.

Can anyone help?

I never use codewarrior personally, but on great for novice site NEHE ( many lessons ported to codewarrior, for example lesson 2 have port for version 5.3. Not sure if it 100% compatible but it can give you a direction. And probably some lessons have ports for more resent versions of your compiler.