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

De, Pradipta pde at seic.com
Tue Oct 18 15:24:02 EDT 2005


Hi Boris,
That problem I managed to solve. See the attached file. 

Please tell me whether the patch is OK or not?

But now I am facing a different compilation error. See the error below:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<<<<
/home1/xxxx/pradipta/parser_1.4/output_unparse/bin >make -f
libunparse.mak
echo finDNA_Online_Output ../src/finDNA_Online_Output.cxx
finDNA_Online_Output.o ../src/finDNA_Online_Output.cxx
finDNA_Online_Output ../src/finDNA_Online_Output.cxx
finDNA_Online_Output.o ../src/finDNA_Online_Output.cxx
CC -g -D_SHDEBUG_ -D_SVCDEBUG_ -c
-I/home1/xxxx/pradipta/parser_1.4/output_unparse/include
-I/home1/xxxx/pradipta/parser_1.4/libxsd-1.4.0-2
-I/home1/xxxx/pradipta/parser_1.4/xerces-c-solaris_28-cc_62/include
-I/home1/xxxx/pradipta/parser_1.4/xerces-c-solaris_28-cc_62/include/xerc
esc ../src/finDNA_Online_Output.cxx
Error: Overloading ambiguity between
"xsd::cxx::tree::fundamental_base<int>::operator
xsd::cxx::tree::one_functor<xxxx::Hit::_xsd_hitCount::_xsd_hitCount_::hi
tCount><xsd::cxx::tree::one_functor<xxxx::Hit::_xsd_hitCount::_xsd_hitCo
unt_::hitCount>>() const" and
"xsd::cxx::tree::fundamental_base<int>::operator
xsd::cxx::tree::one_functor<xxxx::Hit::_xsd_hitCount::_xsd_hitCount_::hi
tCount><xsd::cxx::tree::one_functor<xxxx::Hit::_xsd_hitCount::_xsd_hitCo
unt_::hitCount>>()".
"../src/finDNA_Online_Output.cxx", line 593: Error: Could not find a
match for xsd::cxx::xml::dom::dom<xsd::cxx::xml::dom::C>(const char[10],
const char[26], const xsd::cxx::xml::dom::namespace_infomap<char>)
needed in xxxx::amloutput(const xxxx::AMLOutput&, const
xsd::cxx::xml::dom::namespace_infomap<char>&).
Error: Overloading ambiguity between
"xsd::cxx::tree::fundamental_base<int>::operator signed char<signed
char>() const" and "xsd::cxx::tree::fundamental_base<int>::operator
signed char<signed char>()".
Error: Overloading ambiguity between
"xsd::cxx::tree::fundamental_base<int>::operator long double<long
double>() const" and "xsd::cxx::tree::fundamental_base<int>::operator
long double<long double>()".
Error: Overloading ambiguity between
"xsd::cxx::tree::fundamental_base<int>::operator double<double>() const"
and "xsd::cxx::tree::fundamental_base<int>::operator double<double>()".
Error: Overloading ambiguity between
"xsd::cxx::tree::fundamental_base<int>::operator float<float>() const"
and "xsd::cxx::tree::fundamental_base<int>::operator float<float>()".
Error: Overloading ambiguity between
"xsd::cxx::tree::fundamental_base<int>::operator bool<bool>() const" and
"xsd::cxx::tree::fundamental_base<int>::operator bool<bool>()".
Error: Overloading ambiguity between
"xsd::cxx::tree::fundamental_base<int>::operator unsigned long
long<unsigned long long>() const" and
"xsd::cxx::tree::fundamental_base<int>::operator unsigned long
long<unsigned long long>()".
Error: Overloading ambiguity between
"xsd::cxx::tree::fundamental_base<int>::operator long long<long long>()
const" and "xsd::cxx::tree::fundamental_base<int>::operator long
long<long long>()".
Error: Overloading ambiguity between
"xsd::cxx::tree::fundamental_base<int>::operator unsigned<unsigned>()
const" and "xsd::cxx::tree::fundamental_base<int>::operator
unsigned<unsigned>()".
Error: Overloading ambiguity between
"xsd::cxx::tree::fundamental_base<int>::operator unsigned short<unsigned
short>() const" and "xsd::cxx::tree::fundamental_base<int>::operator
unsigned short<unsigned short>()".
Error: Overloading ambiguity between
"xsd::cxx::tree::fundamental_base<int>::operator short<short>() const"
and "xsd::cxx::tree::fundamental_base<int>::operator short<short>()".
Error: Overloading ambiguity between
"xsd::cxx::tree::fundamental_base<int>::operator unsigned char<unsigned
char>() const" and "xsd::cxx::tree::fundamental_base<int>::operator
unsigned char<unsigned char>()".
Error: Overloading ambiguity between
"xsd::cxx::tree::fundamental_base<int>::operator signed char<signed
char>() const" and "xsd::cxx::tree::fundamental_base<int>::operator
signed char<signed char>()".
Error: Overloading ambiguity between
"xsd::cxx::tree::fundamental_base<int>::operator long double<long
double>() const" and "xsd::cxx::tree::fundamental_base<int>::operator
long double<long double>()".
Error: Overloading ambiguity between
"xsd::cxx::tree::fundamental_base<int>::operator long double<long
double>() const" and "xsd::cxx::tree::fundamental_base<int>::operator
long double<long double>()".
Error: Overloading ambiguity between
"xsd::cxx::tree::fundamental_base<int>::operator signed char<signed
char>() const" and "xsd::cxx::tree::fundamental_base<int>::operator
signed char<signed char>()".
Error: Overloading ambiguity between
"xsd::cxx::tree::fundamental_base<int>::operator double<double>() const"
and "xsd::cxx::tree::fundamental_base<int>::operator double<double>()".
Error: Overloading ambiguity between
"xsd::cxx::tree::fundamental_base<int>::operator double<double>() const"
and "xsd::cxx::tree::fundamental_base<int>::operator double<double>()".
Error: Overloading ambiguity between
"xsd::cxx::tree::fundamental_base<int>::operator signed char<signed
char>() const" and "xsd::cxx::tree::fundamental_base<int>::operator
signed char<signed char>()".
Error: Overloading ambiguity between
"xsd::cxx::tree::fundamental_base<int>::operator float<float>() const"
and "xsd::cxx::tree::fundamental_base<int>::operator float<float>()".
Error: Overloading ambiguity between
"xsd::cxx::tree::fundamental_base<int>::operator float<float>() const"
and "xsd::cxx::tree::fundamental_base<int>::operator float<float>()".
Error: Overloading ambiguity between
"xsd::cxx::tree::fundamental_base<int>::operator signed char<signed
char>() const" and "xsd::cxx::tree::fundamental_base<int>::operator
signed char<signed char>()".
Error: Overloading ambiguity between
"xsd::cxx::tree::fundamental_base<int>::operator bool<bool>() const" and
"xsd::cxx::tree::fundamental_base<int>::operator bool<bool>()".
Error: Overloading ambiguity between
"xsd::cxx::tree::fundamental_base<int>::operator bool<bool>() const" and
"xsd::cxx::tree::fundamental_base<int>::operator bool<bool>()".
Compilation aborted, too many Error messages.
*** Error code 1
make: Fatal error: Command failed for target `finDNA_Online_Output.o'
/home1/xxxx/pradipta/parser_1.4/output_unparse/bin >
>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<<<<

I tried a lot to trace it out, but not able to do it.

Please look into it and let me know.

Thanks and Regards,
Pradipta De 
-----Original Message-----
From: De, Pradipta 
Sent: Tuesday, October 18, 2005 1:45 PM
To: 'Boris Kolpackov'
Cc: xsd-users at codesynthesis.com
Subject: RE: Problem during compilation of generated files

Hi Boris,

We tried the serialization , but we are hitting into similar problems
like the one we initially hit for elements.txx , the error we are
getting is as follows

*********************
"/home1/xxxx/pradipta/parser_1.4/libxsd-1.4.0-2/xsd/cxx/xml/dom/serializ
ation.txx", line 173: Error: A constructor may not have a return type
specification.
"/home1/xxxx/pradipta/parser_1.4/libxsd-1.4.0-2/xsd/cxx/xml/dom/serializ
ation.txx", line 173: Error: xsd::cxx::xml::dom::dom(const
std::basic_string<std::charT, std::char_traits<std::charT>,
std::allocator<std::T>>&, const std::basic_string<std::charT,
std::char_traits<std::charT>, std::allocator<std::T>>&, const
xsd::cxx::xml::dom::namespace_infomap<xsd::cxx::xml::dom::C>&) is not a
member of xsd::cxx::xml::dom.
2 Error(s) detected.
*** Error code 2
make: Fatal error: Command failed for target `driver.o'
*********************

Please have a look and let us know.

Thanks & Regards,
Pradipta De 

-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com] 
Sent: Monday, October 17, 2005 2:15 PM
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:

> But, when try to generate the code like the following way:
>
> C:\Documents and
> Settings\pde\Desktop\useful\codes\xsd-1.4.0-i686-windows\bin>xsd
> --generate-serialization xxxx_Online_Input.xsd

I think you forgot to specify which mapping you want. It should be
something like this:

xsd cxx-tree --generate-serialization xxxx_Online_Input.xsd


BTW, the command line interface of the compiler is documented here:

http://codesynthesis.com/projects/xsd/documentation/xsd.xhtml


hth,
-boris

-------------- next part --------------
A non-text attachment was scrubbed...
Name: serialization.txx
Type: application/octet-stream
Size: 8889 bytes
Desc: serialization.txx
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20051018/ed92c714/serialization.obj


More information about the xsd-users mailing list