Well, I actually had a couple of things cleared up via a posting I had a
couple of days ago....from the reply I got:
To use the MSL C++ library in CW Palm 7:
1) Add {Compiler}Palm OS Support\CodeWarrior Libraries\(MSL) to your
access paths.
2) Add ANSICPPPALM.LIB to your project (this file is found in (MSL)\MSL
C++\MSL_Palm\Lib\Palm.
This will make you include the right header files and give the
additional definitions you need to use a std::string.
In CW Palm 8, you just choose "MSL C/C++ Library" in the application
wizard, and your project is setup correctly for you from the start.
Craig Deelsnyder <[EMAIL PROTECTED]> wrote in message
news:65886@palm-dev-forum...
>
> 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/