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

William Canton stargate625 at gmail.com
Mon Mar 28 12:17:01 EDT 2011


Hi Boris,

After adding the codf as namespace as you suggested, it created another
problem:  CodeSynthesis never generated any headers or cpp files from the
schema.

William

On Mon, Mar 28, 2011 at 12:10 PM, William Canton <stargate625 at gmail.com>wrote:

> The FileSystemType is defined by CodeSynthesis in the same generated header
> codf.hxx on line 5028.  There is also a forward declaration of this type on
> line 285 in the same header.
>
>
> On Mon, Mar 28, 2011 at 12:02 PM, Boris Kolpackov <boris at codesynthesis.com
> > wrote:
>
>> 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