[xsd-users] Error: incomplete type when compiling cxx generated with --file-per-type

Yongchang Huang xjtu.yohuang at gmail.com
Mon Jul 24 11:55:30 EDT 2023


Hi Boris,

Sorry that I did not check the debug.tar carefully before sending it out.

The updated tar is attached.

I will also try to use the pre-release version meanwhile.

thanks,
yohuang

Boris Kolpackov <boris at codesynthesis.com> 于2023年7月24日周一 22:59写道:

> Boris Kolpackov <boris at codesynthesis.com> writes:
>
> > Yongchang Huang <xjtu.yohuang at gmail.com> writes:
> >
> > > I used xsd-4.0.0 to generate cxx-tree files with --file-per-type
> option,
> > > and then tried to compile the .cxx files. g++ reported incomplete type
> > > error as shown below.
> >
> > There were some issues in this area that we've fixed since the 4.0.0
> > release. Would you be able to re-test this with the latest XSD pre-
> > release and see if it makes any difference?
>
> I had a minute so I tried to check this myself using the reproducer
> you have provided. But it seems to be missing some schemas:
>
> $ ./run.sh
> busDefinition.xsd: error: 'generator.xsd': unable to open in read mode
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debug.tar
Type: application/x-tar
Size: 378880 bytes
Desc: not available
Url : https://codesynthesis.com/pipermail/xsd-users/attachments/20230724/850a8723/debug-0001.tar


More information about the xsd-users mailing list