Did you check if you have a prototype of degtorad defined in more than one
place?
I had similar problems when porting some Unix code that had a couple of
duplicate function prototypes. I changed the one of the prototypes but
overlooked the other, resulting in bus errors when the function was called
(for obvious reasons).
No offence to the prc-tools author (the tools have proved stable for me),
but I find the prc-tools 2.0 mechanism for multiple code segments
inconvenient, primarily because they "source invasive". I'm thinking of
switching back to using multilink which we used successfully with
prc-tools-0.5 and did not require any source changes.
"Chris DiPierro" <[EMAIL PROTECTED]> wrote in message
news:6103@palm-dev-forum...
>
> Ok, float bug in hand, spurious code segment resolved, now I've got the
> following issue. If I put the following function in my code, it'll perform
> a bus error when trying to call this function:
>
> float degtorad (float degrees) __attribute__ ((section ("calcs")));
> float degtorad (float degrees)
> {
> float t;
>
> t = pi/(float)180*degrees;
> return (t);
> }
>
> However, if I comment out the line that moves it to the calcs segment, it
> works just fine. Is there something that's not allowing floating point ops
> in anything but the main segment?
>
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html