Mail Archives: djgpp/2001/03/17/05:06:53
> From: Prashant Ramachandra <rprash AT wilco-int DOT com>
> Date: Sat, 17 Mar 2001 14:21:46 +0530
>
> On Saturday, March 17, 2001 1:34 PM, James W Sager Iii
> [SMTP:sager+@andrew.cmu.edu] wrote:
> |
> | Alright so in my project sqrt(); will not work. However in a
> | single
> | line command mode, I have no problem with it. It'd take me an hour
> | or
> | two to track down if I pulled my project apart since its like 250k
> | in 20
> | files.
> | Not really sure its worth it, unless its driving someone insane
> | wondering what it could be.
>
> There's nothing insane about it. You just have to link in the math library,
No, there's no need to link in libm.a: sqrt is in libc.a as well.
In fact, for most arguments, code produced by latest versions of GCC
doesn't even call the library function, it emits an FP instruction
that computes the square root directly.
- Raw text -