PDA

View Full Version : Problem with libGL.os



05-31-2002, 03:42 PM
I'm trying to compile and link an opengl program using the gcc compiler on a LINUX machine. I keep getting this error: /usr/lib/libGL.os ... undeclared identifier 'pow'

I'm using these include files in my program: GL/glx.h and GL/gl.h

This happens whenever I use -lGL option. Has anyone ever seen this before or knows how to fix it?

mphanke
06-01-2002, 05:14 AM
Hi,

I forgot what the link option for the math library is, but I think it is -lm. That should fix the problem. pow is a math function, so you have to link against the math library. In most cases you can figure out what you need to include by greping the missing function in the includes.
Hope this helps,

Martin