Hi Ben,

Followed your suggestion, I added PalmOSRuntime_2i_A5.lib to my project file
which is called DBEngineLib and was created using Code Warrior 8.0's Palm OS
Shared Library Wizard. As I talked yesterday, I have a class called
CDateTime to wrap in, thus I inserted a lib func to create a CDateTime obj
into the shared library and its dispatch table:

CDateTime * CDateTime_CreateObj(UInt16 refNum)
{
   #pragma unused(refNum)
   CDateTime * gDateTime = new CDateTime();
    return gDateTime;
}

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 Warning : ignored: '__ldivu__' in CWRuntime.c
Previously defined in \Program Files\Metrowerks\CodeWarrior\CW for Palm OS
Support\Runtime Libraries\Src\CWRuntime.c

Link Warning : ignored: '__ldiv__' in CWRuntime.c
Previously defined in \Program Files\Metrowerks\CodeWarrior\CW for Palm OS
Support\Runtime Libraries\Src\CWRuntime.c

Link Warning : ignored: '__lmodu__' in CWRuntime.c
Previously defined in \Program Files\Metrowerks\CodeWarrior\CW for Palm OS
Support\Runtime Libraries\Src\CWRuntime.c

Link Warning : ignored: '__lmod__' in CWRuntime.c
Previously defined in \Program Files\Metrowerks\CodeWarrior\CW for Palm OS
Support\Runtime Libraries\Src\CWRuntime.c

Link Warning : ignored: '__wswtch__' in CWRuntime.c
Previously defined in \Program Files\Metrowerks\CodeWarrior\CW for Palm OS
Support\Runtime Libraries\Src\CWRuntime.c

Link Warning : ignored: '__lswtch__' 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
32-bit reference to 'std::bad_alloc::~bad_alloc()'.

Link Error   : NewMore.cp: 'std::bad_alloc::__vt' has illegal single segment
32-bit reference to 'std::bad_alloc::what() const'.

Link Error   : NewMore.cp: 'std::bad_alloc::__vt' has illegal single segment
32-bit reference to 'std::bad_alloc::__RTTI'.

Link Error   : NewMore.cp: 'std::bad_alloc::__RTTI' has illegal single
segment 32-bit reference to '@188'.

Link Error   : NewMore.cp: 'std::bad_alloc::__RTTI' has illegal single
segment 32-bit reference to '@187'.

Link Error   : NewMore.cp: '@188' has illegal single segment 32-bit
reference to 'std::exception::__RTTI'.

Link Error   : NewMore.cp: 'std::exception::__RTTI' has illegal single
segment 32-bit reference to '@189'.

Link Error   : Exception68K.cp: 'std::exception::__vt' has illegal single
segment 32-bit reference to 'std::exception::~exception()'.

Link Error   : Exception68K.cp: 'std::exception::__vt' has illegal single
segment 32-bit reference to 'std::exception::what() const'.

Link Error   : Exception68K.cp: 'std::exception::__vt' has illegal single
segment 32-bit reference to 'std::exception::__RTTI'.

Link Error   : Exception68K.cp: 'std::bad_exception::__vt' has illegal
single segment 32-bit reference to 'std::bad_exception::~bad_exception()'.

Link Error   : Exception68K.cp: 'std::bad_exception::__vt' has illegal
single segment 32-bit reference to 'std::bad_exception::what() const'.

Link Error   : Exception68K.cp: 'std::bad_exception::__vt' has illegal
single segment 32-bit reference to 'std::bad_exception::__RTTI'.

Link Error   : Exception68K.cp: 'std::bad_exception::__RTTI' has illegal
single segment 32-bit reference to '@772'.

Link Error   : Exception68K.cp: 'std::bad_exception::__RTTI' has illegal
single segment 32-bit reference to '@771'.

Link Error   : Exception68K.cp: '@772' has illegal single segment 32-bit
reference to 'std::exception::__RTTI'.

Link Error   : Exception68K.cp: 'std::exception::__RTTI' has illegal single
segment 32-bit reference to '@773'.

Link Error   : __RuntimeModule__: '__segtable__' has illegal single segment
32-bit reference to '__DummyStartup__'.

Link Error   : DBEngineLibImpl.cpp: '@exceptioninfo@' has illegal single
segment 32-bit reference to 'operator delete(void*)'.



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

Reply via email to