[xsd-users] Question about xsd

Gregorio Arvilla Gregorio.Arvilla at epvgroup.com
Tue Jan 23 17:26:12 EST 2007


Hi Boris,

I did what you said below. Here is the command that I'm using:

[/users/greg/xsd_codeSynthesis/xsd-2.3.1-hppa-hpux/examples/cxx/tree/hello]
[bilbo][greg] aCC -AA -I../../../../../xerces-c-src_2_7_0/include -I../../../../libxsd -Lxerces-c-src_2_7_0/lib hello.cxx driver.cxx -lxerces-c


And here are some of the first few lines of the errors I'm getting:


[/users/greg/xsd_codeSynthesis/xsd-2.3.1-hppa-hpux/examples/cxx/tree/hello]
[bilbo][greg] aCC -AA -I../../../../../xerces-c-src_2_7_0/include -I../../../../libxsd -Lxerces-c-src_2_7_0/lib hello.cxx driver.cxx -lxerces-c
hello.cxx:
Warning 930: "../../../../../xerces-c-src_2_7_0/include/xercesc/util/PlatformUtils.hpp", line 793 # Placement operator delete invocation is not yet implemented.
    MakeXMLException(XMLPlatformUtilsException, XMLUTIL_EXPORT)
    ^^^^^^^^^^^^^^^^
Warning 930: "../../../../../xerces-c-src_2_7_0/include/xercesc/util/ArrayIndexOutOfBoundsException.hpp", line 28 # Placement operator delete invocation is not yet implemented.
    MakeXMLException(ArrayIndexOutOfBoundsException, XMLUTIL_EXPORT)
    ^^^^^^^^^^^^^^^^
Error 331: "../../../../libxsd/xsd/cxx/tree/containers.hxx", line 395 # Illegal cast expression; cannot cast expression type '<no type>' to 'bool'.
          template <typename X, bool fund = fundamental_p<X>::r>
                                            ^^^^^^^^^^^^^^^^^^^
Error 556: "../../../../libxsd/xsd/cxx/tree/list.hxx", line 34 # Unable to generate specialization class sequence<#1,(bool)xsd::cxx::tree::fundamental_p::r> due to errors during generation.
          class list<X, C, false>: public sequence<X>
                                          ^^^^^^^^^^^
Error 331: "../../../../libxsd/xsd/cxx/tree/containers.hxx", line 395 # Illegal cast expression; cannot cast expression type '<no type>' to 'bool'.
          template <typename X, bool fund = fundamental_p<X>::r>
                                            ^^^^^^^^^^^^^^^^^^^
Error 556: "../../../../libxsd/xsd/cxx/tree/list.hxx", line 44 # Unable to generate specialization class sequence<#1,(bool)xsd::cxx::tree::fundamental_p::r> due to errors during generation.
            list (typename sequence<X>::size_type n)
                           ^^^^^^^^^^^
Error 331: "../../../../libxsd/xsd/cxx/tree/containers.hxx", line 395 # Illegal cast expression; cannot cast expression type '<no type>' to 'bool'.
          template <typename X, bool fund = fundamental_p<X>::r>
                                            ^^^^^^^^^^^^^^^^^^^
Error 556: "../../../../libxsd/xsd/cxx/tree/list.hxx", line 49 # Unable to generate specialization class sequence<#1,(bool)xsd::cxx::tree::fundamental_p::r> due to errors during generation.
            list (typename sequence<X>::size_type n, const X& x)
                           ^^^^^^^^^^^
Error 331: "../../../../libxsd/xsd/cxx/tree/containers.hxx", line 395 # Illegal cast expression; cannot cast expression type '<no type>' to 'bool'.
          template <typename X, bool fund = fundamental_p<X>::r>
                                            ^^^^^^^^^^^^^^^^^^^
Error 556: "../../../../libxsd/xsd/cxx/tree/list.hxx", line 45 # Unable to generate specialization class sequence<#1,(bool)xsd::cxx::tree::fundamental_p::r> due to errors during generation.
                : sequence<X> (n, X ())
                  ^^^^^^^^^^^
Error 331: "../../../../libxsd/xsd/cxx/tree/containers.hxx", line 395 # Illegal cast expression; cannot cast expression type '<no type>' to 'bool'.
          template <typename X, bool fund = fundamental_p<X>::r>
                                            ^^^^^^^^^^^^^^^^^^^
Error 556: "../../../../libxsd/xsd/cxx/tree/list.hxx", line 50 # Unable to generate specialization class sequence<#1,(bool)xsd::cxx::tree::fundamental_p::r> due to errors during generation.
                : sequence<X> (n, x)
                  ^^^^^^^^^^^
Error 331: "../../../../libxsd/xsd/cxx/tree/containers.hxx", line 395 # Illegal cast expression; cannot cast expression type '<no type>' to 'bool'.
          template <typename X, bool fund = fundamental_p<X>::r>
                                            ^^^^^^^^^^^^^^^^^^^
Error 556: "../../../../libxsd/xsd/cxx/tree/list.hxx", line 56 # Unable to generate specialization class sequence<#1,(bool)xsd::cxx::tree::fundamental_p::r> due to errors during generation.
                : sequence<X> (b, e)
                  ^^^^^^^^^^^



I would really appreciate your help.

Thank you

Gregorio






-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com]
Sent: Tuesday, January 23, 2007 2:12 PM
To: Gregorio Arvilla
Cc: xsd-users
Subject: Re: [xsd-users] Question about xsd


Hi Gregorio,

Gregorio Arvilla <Gregorio.Arvilla at epvgroup.com> writes:

> If I generate code for a xsd schema on a Windows machine and then
> move that generated code to the HP-UX machine, what do I need to
> install on the HP-UX machine to use that code?

You will need two things besides the generated code:

1. Xerces-C++. Compile it using aCC. Note that to build Xerces-C++
   you will also need GNU make. Check is you have 'gmake' command
   on you system. If so then that's GNU make. If not then you will
   need to build or get one. Once you have GNU make, you can do:

   $ gzip -d xerces-c-src_2_7_0.tar.gz
   $ tar xf xerces-c-src_2_7_0.tar
   $ cd xerces-c-src_2_7_0
   $ export XERCESCROOT=`pwd`
   $ cd src/xercesc
   $ ./runConfigure -p hp-11 -x aCC
   $ gmake

   Run runConfigure without any options to see the complete
   list of the configuration parameters. At the end of the
   build headers will be in xerces-c-src_2_7_0/include and
   libraries in xerces-c-src_2_7_0/lib


2. Libxsd. This is header-only XSD run-time library. You can
   copy it along with the generated code from the Windows box.
   You don't need to build it.


After that you are all set. For instance, the hello example
that comes with the XSD distribution can be compiled like
so:

$ aCC -AA -Ixerces-c-src_2_7_0/include -Ilibxsd -Lxerces-c-src_2_7_0/lib hello.cxx driver.cxx -lxerces-c


hth,
-boris




More information about the xsd-users mailing list