[xsd-users] xsd: cannot compile on HP-UX

Uri Karagila uri at hyperroll.com
Wed Sep 5 09:32:56 EDT 2007


Hi,
We use the following compiler on the HP-UX 11.11 (PA RISC):
    aCC: HP ANSI C++ B3910B A.03.63
We used to compile with default settings (like with the "-AP" flag: Classic environment).
1. The XSD generated code cannot be compiled with this option, and our shared libraries become incompatible with 3rd party products that were build with "-AP" flag, too.
2. When we've tried to compile the whole code with the "-AA" flag (Standard environment), the XSD generated files could not be compiled. We absolutely do not want to use STLport product with "-Aa" (we need to check the performance and correctness of the thing, and this may take us a long time, and can be very expensive for us).
    The problem example.
        void Load::parse (::xsd::cxx::xml::dom::parser< char >& p, ::xml_schema::flags f)
        {
               ...
               if (!namString_.present ())
               {
                      this->namString (
                        namString_traits::create (               /// <<< FOR THIS LINE !!!
                          ::std::string ("NAM"),
                          &p.element (), f, this));
               }
              ...
        }
    The compiler's complaints are:
Error 226: "HyperRoll-Load.cxx", line 2251 # No appropriate function found for call of 'auto_ptr::auto_ptr'. Last viable candidate was
    "std::auto_ptr<xsd::cxx::tree::string<char,xsd::cxx::tree::simple_type<xsd::cxx::tree::_type> > >::auto_ptr(std::auto_ptr<xsd::cxx::tree::string<char,xsd::cxx::tree::simple_type<xsd::cxx::tree::_type> > > &)" ["/opt/aCC/include_std/memory", line 838]. Argument of type 'class auto_ptr<xsd::cxx::tree::string<char,xsd::cxx::tree::simple_type<xsd::cxx::tree::_type> > >' could not be converted to
    'std::auto_ptr<xsd::cxx::tree::string<char,xsd::cxx::tree::simple_type<xsd::cxx::tree::_type> > > &'.
            namString_traits::create (
            ^^^^^^^^^^^^^^^^^^^^^^^^^^

Please solve this issue in a portable way.



More information about the xsd-users mailing list