[xsd-users] "expected identifier before numeric constant" error

Hing Liu hing.liu at gmail.com
Sun Jun 4 08:58:49 EDT 2017


Hi Boris,

Cool. It works. Thanks for your suggestion. I just wonder why it works in
Linux while it cause problem in Solaris, not important anyway with this
option.

Thanks,
Hing


On Sun, Jun 4, 2017 at 5:40 PM, Boris Kolpackov <boris at codesynthesis.com>
wrote:

> Hi Hing,
>
> Hing Liu <hing.liu at gmail.com> writes:
>
> > isocrstypes_v1.0.h:487:7: error: expected identifier before numeric
> constant
> >        GS,
> >
> > After searching around, it seems like there is preprocessor conflict to
> the
> > enum value "GS", but I cannot see the conflict even using gcc -E option.
>
> You can use XSD's --reserved-name option to rename it to something that
> doesn't conflict.
>
> Boris
>


More information about the xsd-users mailing list