Hi,

Here's a snippet from the CW for Palm FAQ that may clarify:

4.5 Can I use ANSI C (or C++) standard libraries on device?

Use of ANSI C/C++ libraries on device is not supported in CodeWarrior for
PalmPilot Release 3 and earlier. Metrowerks has added limited Palm Computing
platform support to MSL (Metrowerks Standard Library, our standard ANSI C
and C++ library implementation) in CodeWarrior for Palm OS Release 4 and
later. Note, however, that console based I/O (the most commonly mentioned
standard lib functionality) will not be supported on device since the Palm
OS itself does not support console I/O.

Please bear in mind that even though MSL supports Palm Computing platform,
extensive use of standard library functions will likely be discouraged. The
standard libraries include a great deal of code. Even though the linker
strips out the unused library functions it does not take the use of many
library functions before your application would begin to grow beyond the
Palm OS-imposed limitations on application size. While these limitations can
be surmounted using the multi-segment applications introduced with CW for
Palm OS R4, large applications are still discouraged due to the limited
storage space available on device.

HTH,
Jun-Kiat Lam
Metrowerks Technical Support

----- Original Message -----
From: "Kang Doo Jin" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Tuesday, January 25, 2000 10:49 PM
Subject: MSL, Palm OS version and CW5


> Hello..
>
> I'm not good at CW developement environment, but I can use C.
> I want to use C standard library in CW.
> I find out MSL is the library supports standard ANSI C.
>
> I tried to to it as such...
>
> Char temp[5];
> sprintf(temp, "%3d", eventP->screenX);
>
> But it doesn't work, I don't know why there's a link error.
> 'sprintf' is undefined
>
> I did include MSL C library in the project.
>
> StrPrintF(temp, "%3d", eventP->screenX);
>
> But the above StrPrintF worked.
> It is compiled well, and linked.
>
> I tested it in Palm OS version 2 rom.
> "StringMgr.c, Line:949, Unsupported"...
> I must reset the Emulator.
>
> But in Palm OS 3 rom, It works fine.
>
> Question :
> Can I use stand library in CW ?
> what's the matter with StrPrintF in Rom version 2 and 3 ?
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html.
>


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html.

Reply via email to