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

Boris Kolpackov boris at codesynthesis.com
Mon Jul 24 11:00:20 EDT 2023


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



More information about the xsd-users mailing list