[xsde-users] XSD/e: Problem in building project which uses XSD/e

Boris Kolpackov boris at codesynthesis.com
Mon Feb 28 04:19:02 EST 2011


Hi Haim,

Haim Boot <hayim at marvell.com> writes:

> In the command shell I executed:
> xsde.exe cxx-parser --no-stl "C:\<some XSD>.xsd".

Which version of VxWorks are you using? If it is 5.x, then you will also
need to disable C++ exceptions besides other things (see the etc/vxworks/
directory for sample configuration files).


> When I try to build my project after including the hxx file (not even 
> the link stage) I get the following errors:
> 
> libxsde/xsde/cxx/buffer.hxx:52: parse error before `&'
>
> I get similar errors in class/struct string when not using --no-stl flag.

Hm, this is very strange. The VxWorks toolchain is old but it should still
be able to handle copy constructors. I assume you are using the gcc compiler.
Can you tell me which version it is (gcc --version)?

The only thing that I can think of that could cause this kind of strange
behavior is that you have 'buffer' and 'string' defined as preprocessor
macros. Can you try to include the generated .hxx file first thing in
your C++ source file and see if you still get these errors?

Boris



More information about the xsde-users mailing list