At 01:33 PM 6/16/2005, you wrote:
I'm trying to use loki-lib on my CW 9.3, just to have Singleton Pattern:
http://sourceforge.net/projects/loki-lib/
but I got this link error:
Link Error : UserData.cpp: '__atexit_UNIMPLEMENTED_ON_PALM_OS'
referenced from 'atexit' is undefined.
1) Any idea what is this '__atexit_UNIMPLEMENTED_ON_PALM_OS' or this
'atexit' and a possible workaround as this error explicit that is not
implemented in PalmOS?
I wrote this code. The functions in MSL that were not implemented are
setup through macros so that at link time, you'd get this message. atexit
wasn't implemented. It could be done, but you'd have to write the code
yourself.
2) There is another 'Singleton' Lib option for PalmOS?
Not really. The support would need to be added to the runtime library, and
I didn't do it because supporting atexit would require use of global
variables which aren't always available.
-- Ben Combee, Senior Software Engineer, palmOne, Inc.
"Combee on Palm OS" weblog: http://palmos.combee.net/
Developer Forum Archives: http://news.palmos.com/read/all_forums/
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/