|
Thank you, this is what i needed. A simple usable class without hundreds of errors and incompatible declarations.
Caesten
Sunfire
|
|
|
|
|
Please i need to get attributes from the xml node!
please help asap!
|
|
|
|
|
me too, can you extend your class to reading attribute?
|
|
|
|
|
Hi,
I have compiled xmlreader.cpp / xmlreader.h under Visual C++ 6.0 (Windows XP SP2) but I got those warnings. How can I fix this ?
c:\programmi\microsoft visual studio\vc98\include\xtree(118) : warning C4786: 'std::_Tree<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char> > const ,std:
:basic_string<char,std::char_traits<char>,std::allocator<char> > >,std::map<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::less<std::basic_string<char,st
d::char_traits<char>,std::allocator<char> > >,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > > >::_Kfn,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char> > >,std::allocator<std::basic_st
ring<char,std::char_traits<char>,std::allocator<char> > > >' : identifier was truncated to '255' characters in the debug information
c:\programmi\microsoft visual studio\vc98\include\map(46) : see reference to class template instantiation 'std::_Tree<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::pair<std::basic_string<char,std::char_traits<char
>,std::allocator<char> > const ,std::basic_string<char,std::char_traits<char>,std::allocator<char> > >,std::map<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::basic_string<char,std::char_traits<char>,std::allocator<char> >
,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char> > >,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > > >::_Kfn,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<ch
ar> > >,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > > >' being compiled
c:\sorgenti\xmlimport\xmlreader.h(41) : see reference to class template instantiation 'std::map<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::le
ss<std::basic_string<char,std::char_traits<char>,std::allocator<char> > >,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > > >' being compiled
|
|
|
|
|
Either ignore them, or disable the warning.
If you choose to disable them (which makes it easier to spot other bugs):
#pragma warning( push )
#pragma warning( disable : 4786 ) // identifier was truncated to '255' characters in the debug
// code goes here
#pragma warning( pop )
-Anton
|
|
|
|
|
Hi there. Good article by the way.
I tried to compile the code under Embedded Visual C++ 4.0 for Windows Mobile 2003, and -after removing the couts, I get a link error:
XMLreader.obj : error LNK2019: unresolved external symbol "public: __thiscall std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) referenced in function "public: __thiscall std::_Tree<int,struct std::pair<int="" const="" ,class="" xmlnode="" *="">,struct std::m
ap<int,class xmlnode="" *,struct="" std::less<int="">,class std::allocator<class xmlnode="" *=""> >::_Kfn,struct std::less<int>,class std::allocator<class xmlnode="" *=""> >::~_Tree<int,struct std::pair<int="" const="" ,class="" xmlnode="" *="">,struct std::map<int,class xmlnode="" *,str
uct="" std::less<int="">,class std::allocator<class xmlnode="" *=""> >::_Kfn,struct std::less<int>,class std::allocator<class xmlnode="" *=""> >(void)" (??1?$_Tree@HU?$pair@$$CBHPAVXMLNode@@@std@@U_Kfn@?$map@HPAVXMLNode@@U?$less@H@std@@V?$allocator@PAVXMLNode@@@3@@2@
U?$less@H@2@V?$allocator@PAVXMLNode@@@2@@std@@QAE@XZ)
Do you have a clue, what this could be?
Regards,
Fernando.
A polar bear is a bear whose coordinates has been changed in terms of sine and cosine.
|
|
|
|
|
I added the following:
<br />
using namespace std;<br />
<br />
_Lockit::_Lockit()<br />
{<br />
}<br />
<br />
_Lockit::~_Lockit() <br />
{ <br />
}<br />
at the end of XMLReader.cpp, and compiles and links good. However, I don't know whether this will work or not...
Regards,
Fernando
A polar bear is a bear whose coordinates has been changed in terms of sine and cosine.
|
|
|
|
|
I have compiled in windows only. I am not sure of its behaviour in other platforms.
Regards,
Boby
|
|
|
|
|
|