Hi Craig.

I use <cstring>. I can also use <string.h> but then the std namespace is
excluded. Also remember to include the "MSL_C\MSL_Common\Include" folder in
the system access path.

How do I include a library in a CW project. I know that sounds ignorant, but
I actually haven't found where to do that. Might have something to do with
that I'm more used to Visual C++.

Kind regards, Ola Theander

> -----Original Message-----
> From: Craig Deelsnyder [mailto:[EMAIL PROTECTED]]
> Sent: den 24 oktober 2001 21:08
> To: Palm Developer Forum
> Subject: RE: C string functions and strtok() linker error, using CW 7?
> 
> 
> 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/
> 

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to