PDA

View Full Version : libGL error



02-23-2002, 09:02 AM
I have recently begun coding GLUT in Linux and using Kdevelop. I have all of my libraries referenced and am able to compile asteroids.c that came with the GLUT download as an example. I am now attempting to initialize my own window.
Everything compiles fine and makes fine but when i run it i get an error while loading the shared library : libGL.so.1.2.030402. it says undefined symbol: pow.
I thought there might be something with the library but after compiling the asteroids example i saw there was not (i loaded the library just fine.)

help

===JonShado

rts
02-23-2002, 12:14 PM
Sounds like you forgot to link in the math library: -lm on the command line.

02-23-2002, 03:19 PM
Thanks. that was it.