[vtkusers] a new hand's question!

gao leina leinna2003 at hotmail.com
Sat May 8 10:11:07 EDT 2004


hi,
i'm a new hand using VTK.

i made a binary installation,and created a new win32 console project in 
Microsoft VC++ 6.0.i copied the example programme cone.cxx to my 
project.while i compile the cone.cpp,the message appear:
c:\program files\microsoft visual studio\vc98\include\msxml.h(158) : error 
C2065: 'id' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\msxml.h(158) : error 
C2057: expected constant expression
c:\program files\microsoft visual studio\vc98\include\msxml.h(158) : error 
C2065: 'propget' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\msxml.h(158) : error 
C2057: expected constant expression
c:\program files\microsoft visual studio\vc98\include\msxml.h(158) : error 
C2087: '<Unknown>' : missing subscript
c:\program files\microsoft visual studio\vc98\include\msxml.h(158) : 
warning C4138: '*/' found outside of comment
c:\program files\microsoft visual studio\vc98\include\msxml.h(158) : error 
C2143: syntax error : missing ';' before '*'
c:\program files\microsoft visual studio\vc98\include\msxml.h(158) : error 
C2501: 'ODCA' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\msxml.h(158) : error 
C2059: syntax error : '/'
c:\program files\microsoft visual studio\vc98\include\msxml.h(160) : error 
C2238: unexpected token(s) preceding ';'
c:\program files\microsoft visual studio\vc98\include\msxml.h(248) : error 
C2059: syntax error : 'string'
c:\program files\microsoft visual studio\vc98\include\msxml.h(248) : error 
C2238: unexpected token(s) preceding ';'
c:\program files\microsoft visual studio\vc98\include\msxml.h(403) : error 
C2059: syntax error : 'string'
c:\program files\microsoft visual studio\vc98\include\msxml.h(403) : error 
C2238: unexpected token(s) preceding ';'
c:\program files\microsoft visual studio\vc98\include\msxml.h(832) : error 
C2059: syntax error : 'string'
c:\program files\microsoft visual studio\vc98\include\msxml.h(832) : error 
C2238: unexpected token(s) preceding ';'
c:\program files\microsoft visual studio\vc98\include\msxml.h(1142) : error 
C2535: 'void __stdcall 
IXMLElementCollection::IXMLElement_get_children_Stub(struct IRpcStubBuffer 
*,struct IRpcChannelBuffer *,struct _RPC_MESSAGE *,unsigned long *)' : memb
er function already defined or declared
        c:\program files\microsoft visual studio\vc98\include\msxml.h(163) 
: see declaration of 'IXMLElement_get_children_Stub'
c:\program files\microsoft visual studio\vc98\include\msxml.h(1154) : error 
C2535: 'void __stdcall 
IXMLElementCollection::IXMLElement_get_type_Stub(struct IRpcStubBuffer 
*,struct IRpcChannelBuffer *,struct _RPC_MESSAGE *,unsigned long *)' : 
member f
unction already defined or declared
        c:\program files\microsoft visual studio\vc98\include\msxml.h(175) 
: see declaration of 'IXMLElement_get_type_Stub'
c:\program files\microsoft visual studio\vc98\include\msxml.h(1166) : error 
C2535: 'void __stdcall 
IXMLElementCollection::IXMLElement_get_text_Stub(struct IRpcStubBuffer 
*,struct IRpcChannelBuffer *,struct _RPC_MESSAGE *,unsigned long *)' : 
member f
unction already defined or declared
        c:\program files\microsoft visual studio\vc98\include\msxml.h(187) 
: see declaration of 'IXMLElement_get_text_Stub'
c:\program files\microsoft visual studio\vc98\include\msxml.h(1178) : error 
C2535: 'void __stdcall 
IXMLElementCollection::IXMLElement_put_text_Stub(struct IRpcStubBuffer 
*,struct IRpcChannelBuffer *,struct _RPC_MESSAGE *,unsigned long *)' : 
member f
unction already defined or declared
        c:\program files\microsoft visual studio\vc98\include\msxml.h(199) 
: see declaration of 'IXMLElement_put_text_Stub'
c:\program files\microsoft visual studio\vc98\include\msxml.h(1192) : error 
C2535: 'void __stdcall 
IXMLElementCollection::IXMLElement_addChild_Stub(struct IRpcStubBuffer 
*,struct IRpcChannelBuffer *,struct _RPC_MESSAGE *,unsigned long *)' : 
member f
unction already defined or declared
        c:\program files\microsoft visual studio\vc98\include\msxml.h(213) 
: see declaration of 'IXMLElement_addChild_Stub'
c:\program files\microsoft visual studio\vc98\include\msxml.h(1204) : error 
C2535: 'void __stdcall 
IXMLElementCollection::IXMLElement_removeChild_Stub(struct IRpcStubBuffer 
*,struct IRpcChannelBuffer *,struct _RPC_MESSAGE *,unsigned long *)' : 
membe
r function already defined or declared
        c:\program files\microsoft visual studio\vc98\include\msxml.h(225) 
: see declaration of 'IXMLElement_removeChild_Stub'
c:\program files\microsoft visual studio\vc98\include\msxml.h(1318) : error 
C2059: syntax error : 'string'
c:\program files\microsoft visual studio\vc98\include\msxml.h(1318) : error 
C2238: unexpected token(s) preceding ';'
c:\program files\microsoft visual studio\vc98\include\msxml.h(1443) : error 
C2059: syntax error : 'string'
c:\program files\microsoft visual studio\vc98\include\msxml.h(1443) : error 
C2238: unexpected token(s) preceding ';'
c:\program files\microsoft visual studio\vc98\include\msxml.h(1461) : fatal 
error C1070: mismatched #if/#endif pair in file 'c:\program files\microsoft 
visual studio\vc98\include\msxml.h'
Error executing cl.exe.

cone.obj - 26 error(s), 1 warning(s)   

how the problem is caused?

asking for your help.

thanks

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger:  http://messenger.msn.com/cn  




More information about the vtkusers mailing list