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: Andrew Pinski <email@hidden>
- Date: Thu, 26 Sep 2002 19:50:18 -0700
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.
Thanks,
Andrew Pinski
Thanks,
Sean
_______________________________________________
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.
_______________________________________________
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.