Can anyone tell me about any reported bug
in GCC math header?
Even a very simple code with a reference to <math.h> is
failing regularly.
Here is the super-intelligent code-let, lifted
directly from C Complete Reference by Schildt,
4th Ed, page 409:
#include <math.h>
#include <stdio.h>
int main (void)
{
double x = 10.0, y = 0.0;
do
{
printf("%f\n", pow(x,y));
y++;
}
while (y < 11.0);
return 0;
}
Compiling this with gcc both version 3.2.2 in Slack or 3.3 in SuSE is giving the same message. Like this:
/tmp/ccmcLWjH.o(.text+0x3f): In function `main':
home/dd/works/c/garbage/tenpow.c:8: undefined reference to `pow'
This same thing is happening with 'sqrt' or cube or anything
that invokes math.h
Is there any known trick?
dipankar das
-- To unsubscribe, send mail to [EMAIL PROTECTED] with the body "unsubscribe ilug-cal" and an empty subject line. FAQ: http://www.ilug-cal.org/node.php?id=3
