[xsd-users] RE: Problem during compilation of generated files

De, Pradipta pde at seic.com
Fri Oct 21 11:31:30 EDT 2005


Hi Boris,
That is great.....
The link that you have sent is really very helpful.....

I already started to implement xsd application in my existing
system......

I will let you know when I get a good result..... ;->)

Thanks and Regards,
Pradipta De 

-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com] 
Sent: Friday, October 21, 2005 10:51 AM
To: De, Pradipta
Cc: xsd-users at codesynthesis.com
Subject: Re: Problem during compilation of generated files

Pradipta,

De, Pradipta <pde at seic.com> writes:

> I go through the code of element.hxx and I found the patch you put is
> the following:
>
>          // For Sun C++ 5.6.
>          //
>          struct dom_info_factory;
>          friend struct type::dom_info_factory;
>
> But, dom_info_factory is part of class type and dom_info and
> dom_info_element are also part of same class, so why we require to put
> friend there.

I think it's because Sun C++ 5.6 does not allow nested classes to
access private members of outer class. In 5.7 they changed this, see

http://developers.sun.com/prodtech/cc/documentation/ss10_docs/mr/READMEs
/c++.html#new

fourth bullet.

> The error was coming for dom_info and dom_info_element in case of
> create (of element). But, for another create (of attribute) it was
> working fine. Although, both dom_element_info and dom_attribute_info
> were in the same scope.

I think the compiler just stopped compilation at the first function.

hth,
-boris





More information about the xsd-users mailing list