I actually can't even get a reference to strtok() to compile. Can I ask what are your #includes? Just <string>?
But as for your linking problem, I think you need to be sure to be linking with the MSL Runtime Palm OS (2i).lib file in the PalmOS 3.5 Support\...\runtime folder (btw, does anybody know what the diff is between this .lib and the 4i .lib)? I found a copy of it elsewhere in a different place in the CodeWarrior folders and was having problems linking. Also, I think (and others can maybe lend more of an 'official' opinion) that the Palm OS fxns are preferred over the std C lib functions. I'm using the std calls because I was porting someone else's library of C++ code to use it in a Palm app; hence I wanted to minimize changes I had to make to this C++ code. Hope this gets you started, Craig -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ola Theander Sent: Wednesday, October 24, 2001 1:42 PM To: Palm Developer Forum Subject: C string functions and strtok() linker error, using CW 7? Dear subscribers. I'm currently using CW 7 and developing a simple application. In this application I would like to use the standard C library functions such as strtok(), strlen(), strcpy() etc, implemented in the MSL library. My problem is that strtok() generates a linker error when I'm compiling the project. All other of the functions mentioned above seems to compile and link OK. I've tried to add string.c from the MSL library, which was the only place I could find an implementation of strtok(), to my project but it doesn't compile cleanly. Any help would be appreciated. Another question is, is it wise to use the standard C functions at all in a Palm OS project? Kind regards, Ola Theander -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
