bug in using functions defined in math.h

Andrew Pinski pinskia@physics.uc.edu
Mon Sep 1 22:33:00 GMT 2003


The problem is that glibc's math.h like to inline math functions so 
that is why
you are seeing some undefined function and some that are defined, to 
correct
this add -lm agurment when linking, this links in the math library 
which is
needed for math functions.


Thanks,
Andrew Pinski



More information about the Gcc-bugs mailing list