From: Kevin S. <Kev...@te...> - 2001-10-18 08:15:22
|
All, I would like to implement a simple interface to the Xerces C++ parser in TCL (specifically dealing with the generation of an XML file from a DOM structure). I am working on HP-UX 11, and used the aCC compiler to build the Xerces C++ parser shared library. I have built a stub TCL package shared library (with only a package init and a single simple command). This stub makes no reference to the Xerces code. I am using tclsh 8.3 compiled using an ansi C compiler on HP-UX 11. If I link my stub TCL package shared library using aCC (the C++ compiler) and include the Init and the TCL command implementation function in an extern "C" block, and DONT link the Xerces shared library in during the link phase, then my stub shared library loads successfully. However, if I link the Xerces shared library in during the link phase without changing the object, then I get the following errors on TCL load: /usr/lib/dld.sl: Unresolved symbol: __ZStaticCtorTable_Start (data) from /usr/lib/libCsup.2 /usr/lib/dld.sl: Unresolved symbol: __ZStaticCtorTable_End (data) from /usr/lib/libCsup.2 /usr/lib/dld.sl: Unresolved symbol: __StaticCtorTable_Start (data) from /usr/lib/libCsup.2 /usr/lib/dld.sl: Unresolved symbol: __StaticCtorTable_End (data) from /usr/lib/libCsup.2 /usr/lib/dld.sl: Unresolved module for symbol: __shlinit (code) from /usr/lib/libstream.2 couldn't load file "../lib/libxmlgenxerces.sl": unresolved symbol name (where "../lib/libxmlgenxerces.sl" is my stubb TCL package library) Does anyone have any ideas ? Kev Shaw Tertio Limited - One Angel Square, Torrens Street, London EC1V 1PL Tel: +44 (0)207 843 4000 Fax: +44 (0)207 843 4001 Web http://www.tertio.com Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Tertio Ltd. |