[Ext] Re: [xsd-users] XSD & Windows DLL linkage issues with std::string

Boris Kolpackov boris at codesynthesis.com
Mon Jun 22 08:28:05 EDT 2026


Nicolas Weidmann <n.weidmann at lombardodier.com> writes:

> I wrote a wrapping class that uses, as underlying, a std::string, and
> the link errors are gone as you implied.
> 
> I however now have the following issues with one of my data-bindings:
> 
> unexpected enumerator encountered
> 
> I will double check vs the original xsd::cxx::tree::string to see if I
> have done anything wrong...
> 
> Unless you know exactly what I missed...

Not off the top of my head. But I believe this error is the result
of not being able to match any enumeration value in the generated
code. If the same worked with the original string type, then I would
look into the comparison operator (operator==) of your wrapper.



More information about the xsd-users mailing list