Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IOKit: fabs() prototype missing, yet it complies...



Once again I seem to be going crazy.... :) If I put the line:

double x = fabs (3.4);

in a skeleton test kext it compiles and links (did not try kextload).
Yet I cannot find the function prototype anywhere: I searched the entire
kernel.framework and its not there! (Actually I searched the entire
Frameworks dir, and fabs is only in some Carbon header). But if I change
the line to:

double x = fabs (3.4, 5.6);

I get the error "too many args to fn 'double fabs(double)'". So it knows
the correct prototype somehow. I am only #including IOService.h.

How can this be? If fabs() is unavailable (which I suspect) then surely
there should be an error.

Thanks!
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: missing IOLog (From: Ed Wynne <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.