PDA

View Full Version : How to compile the glut file under red-hat 7.1



01-04-2002, 11:09 PM
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.

01-05-2002, 01:02 AM
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.

01-05-2002, 02:25 AM
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.

01-05-2002, 02:25 AM
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.