libGL error

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

Sounds like you forgot to link in the math library: -lm on the command line.

Thanks. that was it.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.