Hi Martin,
I am not an HPUX expert, but I doubt that you can mix g++ with aCC objects. Have you tried rebuilding Xerces using g++?

Alberto

At 04:21 PM 5/18/2006 +0200, Martin Harm wrote:
Hi,
I got some nasty problems on building applications the *use* the xerces-cLib on HP-UX11i.
To test, I just try to get the samples/SAXPrint running.

I've tried:
1.) gcc : 4.1.0 , xerces: binary-build from xml-apache
export XERCESCROOT=/usr/local/programs/converter/xerces-c_2_7_0-hpux_11i-acc_a03 g++ -I. -fPIC -shared -I$XERCESCROOT/include -c -DNDEBUG -DAPP_NO_THREADS -DXML_USE_NO_THREADS -D_HP_UX -DHPaCC -o SAXPrint.o SAXPrint.cpp g++ -I. -fPIC -shared -I$XERCESCROOT/include -c -DNDEBUG -DAPP_NO_THREADS -DXML_USE_NO_THREADS -D_HP_UX -DHPaCC -o SAXPrintHandlers.o SAXPrintHandlers.cpp g++ -fPIC -lxerces-c -lpthread SAXPrint.o SAXPrintHandlers.o -o SAXPrint -L$XERCESCROOT/lib
--> error:
/usr/ccs/bin/ld: Unsatisfied symbols:
xercesc_2_7::XMLPlatformUtils::Terminate() (first referenced in SAXPrint.o) (code) xercesc_2_7::SAXParser::SAXParser(xercesc_2_7::XMLValidator*, xercesc_2_7::MemoryManager*, xercesc_2_7::XMLGrammarPool*)(first referenced in SAXPrint.o) (code) xercesc_2_7::XMLEntityDecl::~XMLEntityDecl()(first referenced in SAXPrint.o) (code) xercesc_2_7::XMemory::operator delete(void*)(first referenced in SAXPrint.o) (code)
.... and more=20
2.) gcc : 4.1.0 , xerces: binary-build from xml-apache
export XERCESCROOT=/usr/local/programs/converter/xerces-c_2_5_0-hpux_11-acc_a03
and calls above runs without problemns but then:
./SAXPrint
--> error:
/usr/lib/dld.sl: Unresolved symbol: __gxx_personality_sj0 (plabel) from /usr/local/programs/converter/xerces-c_2_5_0-hpux_11-acc_a03/lib/libxerces-c.sl
(muuultiple times ..)
3.) gcc: 3.3.1, xerces: 2.7.0, build with local installed aCC
 --> similar to 1.)


Any suggsetions ???
thanks in advance
martin

Reply via email to