It seems to work fine on my system, actually. Here's what I did:
a) Create a Palm OS C App from the stationery
b) Stick this code into the top of PilotMain:
float myFloat;
int myInt = 3;
myFloat = (float) myInt;
if (myFloat >= 0) {};
c) Set the Floating Point Library to Palm OS.
If I build the above code with the Floating Point Library set to Library I
will get a link error with '_f_itof' which goes away when the Floating Point
Library is set to Palm OS. I tried it with both <NewFloatMgr.h> included and
not included in the source and both built fine. I may be missing something
here, but you may want to try this out and see if it works for you. Let me
know how it turns out.
Jun-Kiat Lam
Metrowerks Technical Support
----- Original Message -----
From: Michael McFarland <[EMAIL PROTECTED]>
To: 'Palm Development List' <[EMAIL PROTECTED]>
Sent: Monday, November 08, 1999 8:00 AM
Subject: Re: float linker errors
> In my project, the Floating Point Library is set to Palm OS. Are you
saying it should be set to something else? (like Library?)
>
> Michael
>
> Jun-Kiat Lam wrote:
> >You may want to try checking the Project Settings:68K Processor and
checking
> >that the Floating Point Library is set to Palm OS. This may be the cause
of
> >the problem.
>
> >Jun-Kiat Lam
> >Metrowerks Technical Support
>
> ----- Original Message -----
> From: Michael McFarland <[EMAIL PROTECTED]>
> To: 'Palm Development List' <[EMAIL PROTECTED]>
> Sent: Thursday, November 04, 1999 4:28 PM
> Subject: float linker errors
>
>
> > Howdy all,
> >
> > I've been using the NewFloatMgr for a while with no problems, and
one
> > of my programs still works fine. But for some reason, when I tried
using
> > floats in my new program, I get a series of linker errors, along the
lines
> > of:
> > Linker Error: program.c '_f_itof' referenced from 'MyFunction' is
> > undefined
> > Linker Error: program.c '_f_ftod' referenced from 'MyFunction' is
> > undefined
> > Linker Error: program.c '_d_fge' referenced from 'MyFunction' is
> > undefined
> >
> > These errors seem to be attached to calls like:
> > myFloat = (float)myInt;
> > if (myFloat >= 0) {};
> >
> > I am including <NewFloatMgr.h>, as I always have. Any ideas what I
could
> > be doing wrong? Is there a particular directory that might (for some
> > unknown reason) have disappeared from my CodeWarrior search paths? Any
> > help would be greatly appreciated.
> >
> > Michael
> >
> >
>