How to compile the glut file under red-hat 7.1

Hi:
I am a new guy for opengl.I have try some programes use the API glut under linux.I use the compile command: cc -o hello hello.c -lGL
-lGLU -lglut ,but the compile didn’t continue.The feedback information is "libGL undefined reference to ‘pow’ ".
Does anybody can told what I can do.Thank you very much.

If you do a “man pow” will you see that this is a math function. Add -lm to your build command. The compiler did not say anything about missing glut files so you probably already have it.

Hi almost:
Thank you very much.I have sloved this problem.I am a PC game fans,and my dream is to be a game programmer.Do you have any advise,thank you.

Hi almost:
Thank you very much.I have sloved this problem.I am a PC game fans,and my dream is to be a game programmer.Do you have any advise,thank you.