No, I was under the impression (from reading other threads related to this topic) that you didn't have to do that, that you could just include what you want.
I'm developing an app that I eventually want to sell and distribute, and I don't want to have to tell my users that they have to install Mathlib in addition to my app. The main thing I need (besides some decent, simple rounding and sqrt functions) is the ability to find an angle from a pair of coordinates, e.g. going from (0,0) to (2,2) is a 45 degree bearing. After doing a fair amount of searching on this I've found I want the arctan, or atan2() function. However, this function returns radian which I then have to convert to degrees. In the meantime while I'm trying to get Mathlib working, I've been using the fdlibm.h and just including the 2-3 c files I need from there. But the atan2() function is returning strange values. --------------------------------------- From: "Chris Apers" <[EMAIL PROTECTED]> Date: Fri Jan 31, 2003 8:22 am Subject: Re: SysFatalAlert : can't find MathLib Did you install Mathlib.prc on your device ? ----- Original Message ----- From: "Brian Preston" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Friday, January 31, 2003 3:14 PM Subject: SysFatalAlert : can't find MathLib > I'm trying to use MathLib (obviously). I've followed > the directions on how to include it from their site, > which is basically including the following code in the > AppStart() > > Err error; > > error = SysLibFind(MathLibName, &MathLibRef); > if (error) > error = SysLibLoad(LibType, MathLibCreator, > &MathLibRef); > ErrFatalDisplayIf(error, "Can't find MathLib"); > error = MathLibOpen(MathLibRef, MathLibVersion); > ErrFatalDisplayIf(error, "Can't open MathLib"); > > Then some code to clean this up in AppStop(), as well > as including Mathlib.h in whichever additional source > files use the math functions. The code above, in > AppStart(), is where the error is thrown. > > I'm using CW 8, and I've added both Mathlib.c and > Mathlib.h to my project. Any ideas what I'm doing wrong? > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
