[xsd-users] linking problem with generated cxx/hxx files
Boris Kolpackov
boris at codesynthesis.com
Wed Feb 25 10:57:49 EST 2015
Hi Ivo,
Ivo Luyckx <ILuyckx at benelux.tokheim.com> writes:
> Compiling this project results in a number of the following errors
> while linking:
The two schemas that you have probably define the same types. The
solution is to place the generated code for the two schemas into
different C++ namespace. That is, add this option to the first
command line:
--namespace-map =ns1
And this to the second:
--namespace-map =ns2
> Is there a way to tell XSD (e.g. command line option) to generate a
> more complex class name (e.g. HelloResponse_Message) for these nested
> elements?
Yes, you can do that also. See the --anonymous-regex option in the
XSD compiler command line manual.
Boris
More information about the xsd-users
mailing list