How to compile and run on fedora 12?

g++ c.cpp -o c
I got undefined reference to `glClear’ etc .

u must link ur program to opengl lib.
g++ c.cpp -lGL -o c