Hi Ben. Thanks for your hint. I tried to use "strtol" within a normal application and it couldn't link either. After checking the docs of MSL again, I noticed that this function really isn't implemented in MSL for Palm OS. Nevertheless, it must be implemented in a static library for the PRC-Tools Gnu Compiler, because I have some source-code for the Palm, which uses "strtol" and also includes <stdlib.h>. But it must be a different library than MSL, because the source-code I have was written using the PRC-Tools and as we know the object code is not compatible between the Gnu C Compiler and the Metroworks Compiler, anyways.
Thanks a lot for your permanent support, Ben, it's very valuable for the community of Palm Programmers ! M. "Ben Combee" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > At 06:55 AM 12/8/2003, Marcel wrote: > >Hi. > > > >I have compiled a static library which uses the MSL library (specifically > >the "strtol" function in "stdlib.h"). The compile-process and the linking > >went fine. > > > >Now I would like to link this new library to another application. But when I > >build that application, it results in a link error, saying that the function > >"strtol" which is referenced within my static library is undefined. > > > >How can it be ? I linked my static library already, and it worked fine. Why > >does it produce an error when I link it within another application ? > > When linking a static library, unresolved symbols aren't reported, as a > static library is just a collection of compiled code. You either need to > link the MSL library code into your lib, or you need to require your > library users to link to the MSL library as well. You should also verify > that we actually provide a strtol function in MSL for Palm OS by trying it > in a normal Palm OS application. > > -- > 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/
