Hi Alberto, well, I tried... (with gcc/xx 4.1).. after a while I got it compiling, linking .. BUT when *using* this g++-compiled-lib (eg with samples/SAXPrint) the link step worked, but when starting the program I got : unresolved external _ZNK11xercesc_2_7.. in libxeces-c.sf At this moment I stopped my efforts .. regarding the remarks on the "Build Instructions": If you are not using any of these compilers, you are taking a calculated risk by exploring new grounds. On the other hand, we did use a similar environment, which works fine: - HP-UX11.0 - xerces-c_2_5_0-hpux_11-acc_a03 - gcc 3.3.1
thx martin ________________________________ Von: Alberto Massari [mailto:[EMAIL PROTECTED] Gesendet: Do 2006-05-18 16:31 An: [email protected] Betreff: Re: Build applications on HPUX with g 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 ?, 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
