I am confusing with MSL lib on CW.
I create a test C project with MSL C/C++, and put the following code into it ( the main .c file ) void test(); void test() { char message[1024]; sprintf( message, "%d", 1 ); }
It is compiled without error.
But if I put the two lines "char message[1024]; sprintf( message, "%d", 1 ); " into function MainFormInit then the compiler gives me an error testmsl.c : 'sprintf' referenced from MainFormInit.
Could somebody shed some light for this error ?
See the MSL for Palm OS release notes -- only a subset of the standard library is supported. The standard I/O functions aren't part of them in this release. For sprintf, use StrPrintF instead.
--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
