Re: standard library pow function needed from kext
Re: standard library pow function needed from kext
- Subject: Re: standard library pow function needed from kext
- From: "Justin C. Walker" <email@hidden>
- Date: Thu, 26 Sep 2002 22:03:17 -0700
On Thursday, September 26, 2002, at 07:50 PM, Andrew Pinski wrote:
On Thursday, Sep 26, 2002, at 18:28 US/Pacific, Sean Morrell wrote:
Hello,
I need to use the "double pow(double, double)" standard math function
in a
kext. Actually, the code using pow and other floating point
operations is
compiled into a separate library, which in turn is linked to the
kext. The
problem is that when loading the kext, I get an unknown symbol error
for the
pow function. The root cause to this problem appears to be that there
is
not a static libm on the system. Is this correct? Are there only
dynamic
versions of the math and other libs? And if so, can a dynamic library
be
linked to a kext? Is there a linker option to specify code from a
dynamic
library be pulled into a generated program/kext as would be done with a
static library? Any other suggestions?
why do you need pow?
It is has been said before on this list and on the others you should
not use floating point numbers in the kernel.
What Andrew said. Plus, forget dynamic linking in the kernel.
Everything must be statically linked.
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | It's not whether you win or
lose...
| It's whether *I* win or lose.
*--------------------------------------*-------------------------------*
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.