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 (http://nehe.gamedev.net/) many lessons ported to codewarrior, for example lesson 2 http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=02 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.