The Sun Documentation recommends using the external method: * External instances are suitable for all development and provide the best overall template compilation. * Static instances are suitable for very small programs or debugging and have restricted uses. ..stuff deleted... You should use the external instances method, which is the default, unless there is a very good reason to do otherwise.
This is from: http://docs.sun.com:80/ab2/coll.32.5/CPPPUG/@Ab2PageView/14127?Ab2Lang=C&Ab2Enc=iso-8859-1 The linker also complained about duplicate symbols. Off the top, I don't remember if it was a warning or an error. I'll check tomorrow, because I don't have access right now. Since the shared library was linked with -mt, libc reported a mutex error at runtime and crashed when the sample programs were compiled and linked without -mt.