[xsd-users] Compiler errors occurred in the generated *.hxx files from CodeSynthesis 3.2

Boris Kolpackov boris at codesynthesis.com
Mon Mar 28 12:02:11 EDT 2011


Hi William,

William Canton <stargate625 at gmail.com> writes:

> 1>c:\test\generated\codf.hxx(391) : error C2146: syntax error : missing ';'
> before identifier 'FileSystem_type'
>
> [...]
>
> 391  typedef ::FileSystemType FileSystem_type;

Can you check that the FileSystemType class is actually defined in the
generated codf.hxx header?

One thing that might be causing this is the name clash with some existing
function called FileSystemType (possibly defined by one of the system
headers). You can try to tell the XSD compiler that it is a reserved
name with the --reserved-name option:

--reserved-name FileSystemType

Better yet, you may want to place the generated code into a namespace
instead of the global scope. This can be achieved with the --namespace-map
options:

--namespace-map =codf

Boris



More information about the xsd-users mailing list