[xsd-users] Compiling to multiple DLLs, duplicate symbols problem

Greg Carter greg at permedia.ca
Fri Oct 9 16:21:52 EDT 2009


Hello Boris,

That did the trick.  I did need to add the -hxx-prologue option but I 
guess that is implied with the --export-symbol option.

Thanks!
Greg.

Boris Kolpackov wrote:
> Hi Greg,
>
>
> The solution for this problem is to export symbols for the built-in types 
> from the "base" DLL and import them in all dependant DLLs and executables.
> To automate this we added a new option, --export-xml-schema, for the next
> release of XSD. You can give it a try by downloading this pre-release
> binary:
>
> http://www.codesynthesis.com/~boris/tmp/xsd-3.3.0.a5-i686-windows.zip
>
> In your case, you will need to add 
>
> --export-xml-schema --export-symbol GEOCOSMXMLBASE_SYMBOL_DECL
>
> when generating the code for the XML Schema namespace (i.e., "compiling"
> XSDBaseXmlSchema.xsd).
>
> Let me know if this works for you.
>
> Boris
>
>   




More information about the xsd-users mailing list