[xsd-users] xsd: cannot compile on HP-UX
Boris Kolpackov
boris at codesynthesis.com
Wed Sep 5 13:30:30 EDT 2007
Hi Uri,
Uri Karagila <uri at hyperroll.com> writes:
> 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.
XSD generated code can be compiled with -AP if you add -Aa and use
STLPort for standard-conformant C++ standard library, as discussed
on this page:
http://wiki.codesynthesis.com/XSD/HP-UX_AP
Note that you only need to add -Aa while compiling the generated
code and code that uses it.
> 2. When we've tried to compile the whole code with the "-AA" flag
> (Standard environment), the XSD generated files could not be compiled.
That's strange. We test and make sure each release works with aCC3.
Which version of XSD are you using? If it's other than 2.3.1 or 3.0.0,
can your upgrade to either one of these and see if it makes a difference.
> We absolutely do not want to use STLport product with "-Aa"
Unfortunately that's the only way to use XSD with aCC3 in "Classic
mode" (-AP). The problem with "Classic mode" is that the C++ Library
provided in this mode is nowhere close to the Standard C++, it has
different interfaces and is missing a lot of parts that XSD depends
on. That is why you need STLPort.
Also note that if you are using third-party libraries that were compiled
with -AP then all your code will have to be compiled with -AP.
Boris
More information about the xsd-users
mailing list