Overriding libSystem's math functions
Overriding libSystem's math functions
- Subject: Overriding libSystem's math functions
- From: Mike Blaguszewski <email@hidden>
- Date: Fri, 8 Dec 2006 15:31:38 -0500
In an attempt to get identical floating point results across platforms, I'm compiling my project with the -fno-fast-math switch, and using Sun's open source implementation of the standard C math functions. I'll later do the equivalent with VC++ on Windows.
Currently I'm compiling these files directly into my project, and #including the system <math.h> header. This seems to work, but gives me a bunch of linker warnings about multiple definitions for sin, cos, etc.. Is this a reliable thing to be doing? Is there some better way to override functions in libSystem? Worst case, I can rename the custom functions and their calls, but I was hoping to avoid that.
Thanks for any assistance, and if you think my end goal is hopeless, feel free to advise on that too :-) -- Mike Blaguszewski / Cocoa Hacker / Ambrosia Software, Inc.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden