PDA

View Full Version : Bug with cos and sin



Jacob
07-06-2000, 10:10 PM
Hello,

When I call cos or sin in an
OpenGL+GLUT program, I get an
error :
BUG IN DYNAMIC LINKER: ld.so: dl-version.c : assertion "needed != (void *)()" failed
(or something like that)
Can anyone help ?
Thanks !

Sjonny
07-09-2000, 06:45 AM
That's some nifty error you've created there http://www.opengl.org/discussion_boards/ubb/smile.gif

Did you link the math lib with -lm ?

John

Sjonny
07-09-2000, 06:47 AM
That's some nifty error you've created there http://www.opengl.org/discussion_boards/ubb/smile.gif

Did you link the math lib with -lm ?

John

Jacob
07-10-2000, 10:51 AM
In fact, the bug appears only when
I have my drivers installed.
I think that the bug is in the drivers.
Thanks for having replied !

jmeinhorn
07-12-2000, 05:54 AM
I got this same error and I recompiled the source code again and made sure to include the -lm option. My code now runs fine.

jmeinhorn
07-12-2000, 06:21 AM
Also i replace my libglut.so with the one that is on the dri.sourceforge.net if you follow the resources think I think the libglut.so that is installed with x has some issues.