ss ak wrote, On 14.8.2009 2:04:
>
> After trying a lot and different logging api....i am here and need help...
>
> I could successfully built log4cplus.lib and dll and included in my
> application...
> and also working with xerces api which is already included....
>
> but not included any msxml.h file....Please tell me how to get rid of it...
This has nothing to do with log4cplus.
>
>
>
>
>>c:\program files\microsoft sdks\windows\v6.0a\include\msxml.h(7963) :
> error C2371: 'DOMDocument' : redefinition; different basic types
>
> 1> c:\program files\microsoft sdks\windows\v6.0a\include\msxml.h(171) :
> see declaration of 'DOMDocument'
>
> 1>c:\friday7\domp\dmpsetup.h(85) : error C2872: 'DOMDocument' :
> ambiguous symbol
>
> 1> could be 'c:\program files\microsoft
> sdks\windows\v6.0a\include\msxml.h(7963) : DOMDocument'
>
> 1> or
> 'c:\downloads\xerces-c-3.0.1-x86-windows-vc-9.0\xerces-c-3.0.1-x86-windows-vc-9.0\include\xercesc\dom\domdocument.hpp(64)
> : xercesc_3_0::DOMDocument'
>
> 1>c:\friday7\domp\dmpsetup.cpp(221) : error C2872: 'DOMDocument' :
> ambiguous symbol
>
> 1> could be 'c:\program files\microsoft
> sdks\windows\v6.0a\include\msxml.h(7963) : DOMDocument'
>
> 1> or
> 'c:\downloads\xerces-c-3.0.1-x86-windows-vc-9.0\xerces-c-3.0.1-x86-windows-vc-9.0\include\xercesc\dom\domdocument.hpp(64)
> : xercesc_3_0::DOMDocument'
>
> 1>c:\friday7\domp\dmpsetup.cpp(221) : error C2440: 'initializing' :
> cannot convert from 'xercesc_3_0::DOMDocument *' to 'DOMDocument *'
>
> 1> Types pointed to are unrelated; conversion requires reinterpret_cast,
> C-style cast or function-style cast
>
> 1>c:\friday7\domp\dmpsetup.cpp(229) : error C2027: use of undefined type
> 'DOMDocument'
>
> 1> c:\program files\microsoft sdks\windows\v6.0a\include\msxml.h(7963) :
> see declaration of 'DOMDocument'
>
> 1>c:\friday7\domp\dmpsetup.cpp(229) : error C2227: left of
> '->getDocumentElement' must point to class/struct/union/generic type
>
> 1>c:\friday7\domp\dmpsetup.cpp(235) : error C2027: use of undefined type
> 'DOMDocument'
>
> 1> c:\program files\microsoft sdks\windows\v6.0a\include\msxml.h(7963) :
> see declaration of 'DOMDocument'
It looks like you are including both MSXML and Xerces which both define
DOMDocument class and that breaks the compilation. I am sorry but I cannot
help you with that.
--
VH
|