[xsd-users] XSD export symbol.

Juan Puertos Juan.Puertos at g-cluster.com
Mon Dec 9 09:06:38 EST 2013


Using the .rules file. Now I am trying this

1. Header prologue file: export.hxx
2. Export Symbol: DATAMODELBINDING_EXPORTS

My export.hxx looks like:

#ifdef DATAMODELBINDING_EXPORTS
#define DATAMODELBINDING_SYMBOL_DECL __declspec(dllexport)
#else
#define DATAMODELBINDING_SYMBOL_DECL __declspec(dllimport)
#endif

Generation of the code works, but the class names is something wrong:

" class DATAMODELBINDING_EXPORTS ZeroOpenedUnitInterval: public ::xsd::cxx::tree::fundamental_base< ::xml_schema::decimal, char, ::xml_schema::simple_type, ::xsd::cxx::tree::schema_type::decimal >"

So it fails to compile.
Thanks.

-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com]
Sent: Monday, December 09, 2013 15:43
To: Juan Puertos
Cc: xsd-users at codesynthesis.com
Subject: Re: [xsd-users] XSD export symbol.

Hi Juan,

Juan Puertos <Juan.Puertos at g-cluster.com> writes:

> [...] --export-symbol "--hxx-prologue "#include \"export.hxx\"""

The command line is missing an argument for the --export-symbol option.
It should be something like:

--export-symbol MY_EXPORT ...

Are you using the .rules file or is this your custom build step?

Boris

________________________________

Confidentiality Notice
This e-mail (including any attachments) may contain information that is confidential or privileged. If you are not the intended recipient, please notify the sender immediately by reply e-mail and then delete this message. Unauthorized copying, disclosure, distribution or other use of this information, or taking any action in reliance upon this information is prohibited.



More information about the xsd-users mailing list