At 14:27 2003-1-7 -0500, you wrote:
All of the link warnings are due to having both CWRuntime.c and the runtime lib in the project. You can safely remove CWRuntime.c from your library.When I compile, I didn't get link errors complaining "new" and "delete" are not defined. Instead I got other link errors as below which to me are still due to the usage of "new" and "delete". Could you give me any tips how I can get rid of these link errors? Thanks for your help!Link Warning : ignored: '__lmul__' in CWRuntime.c Previously defined in \Program Files\Metrowerks\CodeWarrior\CW for Palm OS Support\Runtime Libraries\Src\CWRuntime.c
Link Error : NewMore.cp: 'std::bad_alloc::__vt' has illegal single segment
This is a bigger problem... I forgot that new/delete in the runtime use exceptions, which require global variables. You would do better with inline forms of new/delete.32-bit reference to 'std::bad_alloc::~bad_alloc()'.
I refer you to http://www.palmoswerks.com/stories/storyReader$15 for an article on using new and delete in this fashion.
--
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/
