Instead of using sprintf, you should use StrPrintF ( buf, "%c", 1 );
Agus -----Message d'origine----- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de Markus Reichart Envoye : mercredi 3 decembre 2003 11:07 A : Palm Developer Forum Objet : sprintf in CW9.2 link error Hi. I've started a project WITHOUT MSL support. Now I'am forced to inculde non Palm OS optimized C code. Added MSL_C++_PalmOS_2i(_Dbg).lib manually to my project and... My code looks like: #include <stdio.h> void test(void){ unsigned char buf[250]; sprintf((char *)buf,"%c",1); } if I place a function in one of the other modules in the project: Link Error : project.c: 'sprintf' referenced from 'test' is undefined. What's wrong? -- Best greetings from germany Markus Reichart http://www.delineo.de -- 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/
