[ https://issues.apache.org/jira/browse/XERCESC-1888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Boris Kolpackov updated XERCESC-1888: ------------------------------------- Component/s: (was: Samples/Tests) Build I think this is a compiler header issue since Xerces-C++ never actually defines or uses the functions in question. Have you tried to report this to HP or as on the aCC mailing list? > Include conflicts between iostream and Xerces on HP-UX / aCC > ------------------------------------------------------------ > > Key: XERCESC-1888 > URL: https://issues.apache.org/jira/browse/XERCESC-1888 > Project: Xerces-C++ > Issue Type: Bug > Components: Build > Affects Versions: 3.0.1 > Environment: OS : HP-UX B.11.23 U ia64 > Compiler : aCC HP C/aC++ B3910B A.06.13 [Nov 27 2006] > Reporter: Ibrahim Mubarak > Priority: Minor > > Hi, > While trying to compile some code based on the examples in the documentation > from the SAX2 chapter : > #include <xercesc/sax2/SAX2XMLReader.hpp> > #include <xercesc/sax2/XMLReaderFactory.hpp> > #include <xercesc/sax2/DefaultHandler.hpp> > #include <xercesc/util/XMLString.hpp> > #include <iostream> > ... > I get the following compilation errors : > "/opt/aCC/include_std/cwchar", line 70: error #2311: cannot overload functions > distinguished by return type alone > extern const wchar_t* wcsstr(const wchar_t*, const wchar_t*); > ^ > "/opt/aCC/include_std/cwchar", line 71: error #2311: cannot overload functions > distinguished by return type alone > extern const wchar_t* wmemchr(const wchar_t*, wchar_t, size_t); > ^ > Here are the aCC options used : aCC -AA +DD64 +DSitanium -Y -fpeval=double > -DCT -DSYB_LP64 [include paths and the rest] > The solution was to put iostream before the others : > #include <iostream> > #include <xercesc/sax2/SAX2XMLReader.hpp> > #include <xercesc/sax2/XMLReaderFactory.hpp> > #include <xercesc/sax2/DefaultHandler.hpp> > #include <xercesc/util/XMLString.hpp> > ... > I looked at the code in /opt/aCC/include_std/cwchar and it looks complicated. > Do you need a copy of it ? > Another solution would have been "-D__HP_NO_STRING_OVERLOADS" as argument to > aCC. But that looked awful ;) > Regards. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: c-dev-h...@xerces.apache.org