I'm porting a C++ app (some classes) over to CW7.  The code uses some
references to the 'string' type, so I added a reference to #include <string>
Also, I am using the MSL Runtime Palm OS (2i).Lib library in my project.

When I make the project, it compiles fine, but I get 3 link errors, it looks
like in the <string> class:

Link Error: myFile.cpp: 'memset' referenced from
'std::basic_string<char_traits<char>,
std::allocator,char>>::replace(unsigned long, unsigned long, unsigned
long,char)' is undefined

Link Error: myFile.cpp: 'memcmp' referenced from
'std::basic_string<char_traits<char>,
std::allocator,char>>::compare(unsigned long, unsigned long, const
char*,unsigned long) const' is undefined

Link Error: myFile.cpp: 'memset' referenced from
'std::basic_string<char_traits<char>, std::allocator,char>>::append(unsigned
long, char)' is undefined

Anyone point me in the right direction?  First time trying to do in CW, and
I want to do this to modify the original code (written by someone else) as
little as possible.  So I wouldn't doubt if something I did is not setup
correctly.

For sake of brevity, I didn't include any code snippets, as I assume for now
it isn't related to that.  I can post if necessary.

Craig




-- 
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