From: Thomas J. <tho...@in...> - 2005-06-16 16:51:21
|
Christophe, On Monday 13 June 2005 13:08, Thomas Jarosch wrote: > > So it looks like a --disable-static-initialisation in the configure > > script would solve the issue. > > > > Any objection ? > > Fine with me. Of course we have to add a destructor to the Document::Init > class and reset the callbacks. The Document::Init constructor needs an > additional parameter (default: true) if it should call xmlCleanupParser() > during destruction. > > I had another idea: > Would it be possible to create the global _init object via an include file? > > #define LIBXMLPP_DISABLE_STATIC_INIT 1 > #include <libxml++.h> > > Multiple applications which use libxml++ could still > share the same binary library file. I implemented the code like I wrote above. And it works :-) It's not ABI compatible as the new library doesn't contain the static init object, but it's 100% API compatile. -> It's best to bumb the .so version for the next release. Please let me know what you think. Cheers, Thomas |