06/03/2002 11:21:26 AM bounce-palm-dev-forum-51041 wrote:
>In article <87880@palm-dev-forum>, [EMAIL PROTECTED] says...
>> > > I get the following error when linking:
>> > >
>> > >       Link Error : Exception68K.cp: '__rethrow' referenced
>> > >       from '__unexpected' is undefined.
>> >
>> > This is a Ben question, I think. :) I'm new to Palm programming myself.
>>
>> I'm not I don't know who Ben is, but I sure hope he can help!  I have a lot
>> of C++ experience, but and new to CW and am having trouble moving forward
>> until I get this figured out. :(
>
>I'm Ben. :)  I'm the technical lead at Metrowerks for CodeWarrior for
>Palm OS (see my signature).
>
>Did you create your project from C++ stationery or the wizard, selecting
>C++ as your language?  If so, you would have a C++-ready runtime library
>in your project: usually "PalmOSRuntime_2i_A5.lib" for CW Palm V8 or
>"MSL Runtime Palm OS (2i).Lib" for V7 and earlier.  If you just have
>"StartupCode.lib", you only have a runtime supporting basic C programs,
>and you need to change it.

Or add next lines

void* opeator new(UInt32 size)
{
      return (void*)MemPtrNew(size); // or any equal;
}

void opreator delete(void* ptr)
{
      MemPtrFree(ptr);
}



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

Reply via email to