try declaring your routine as a static function.
static void HelloLibSquare...
There is nothing wrong with using floats or doubles in libraries..

----- Original Message -----
From: "David Ek" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Monday, March 10, 2003 12:10 PM
Subject: floats in syslib shared library under prc-tools 2.2?


> I'm trying to build a simple "Hello Lib" example syslib library using
prc-tools 2.2. Other than the open, close, sleep, and wake functions, the
only function in the library looks like this:
>
> void HelloLibSquare( UInt16 refnum, float in, float* out ) {
>    *out = in * in;
>    return;
> }
>
> When I build this library, the build-prc step gives me a warning:
> "global data ignored". I used m68k-palmos-objdump --section-headers to
view the hellolib file and it shows nonzero-sized .data and .bss segments.
Curiously, if I comment out the first line of the body of HelloLibSquare,
the warning goes away and the .data and .bss segment sizes are zero. The
same is true if I make my arguments ints instead of floats.
>
> I'm using the GaussLib example from prc-tools-samples as the basis for
this, and that example builds and runs fine. Any idea why I can't use float
(or double--that bombs, too) for my arguments?
>
> thanks -
>
> Dave
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to