刚接触TinyXML在网上也看了些例子!
按照步骤把两个.h和四个cpp都放到我建的工程目录下了!
编译没错,DEBUG出现很多错误
error LNK2019: unresolved external symbol "public: bool __thiscall TiXmlDocument::LoadFile(enum TiXmlEncoding)" (?LoadFile@TiXmlDocument@@QAE_NW4TiXmlEncoding@@@Z) referenced in function _wmain
1>ParserXML.obj : error LNK2019: unresolved external symbol "public: __thiscall TiXmlDocument::TiXmlDocument(char const *)" (??0TiXmlDocument@@QAE@PBD@Z) referenced in function _wmain
1>ParserXML.obj : error LNK2019: unresolved external symbol "public: class TiXmlElement const * __thiscall TiXmlNode::NextSiblingElement(void)const " (?NextSiblingElement@TiXmlNode@@QBEPBVTiXmlElement@@XZ) referenced in function "public: class TiXmlElement * __thiscall TiXmlNode::NextSiblingElement(void)" (?NextSiblingElement@TiXmlNode@@QAEPAVTiXmlElement@@XZ)
1>ParserXML.obj : error LNK2019: unresolved external symbol "public: class TiXmlElement const * __thiscall TiXmlNode::FirstChildElement(void)const " (?FirstChildElement@TiXmlNode@@QBEPBVTiXmlElement@@XZ) referenced in function "public: class TiXmlElement * __thiscall TiXmlNode::FirstChildElement(void)" (?FirstChildElement@TiXmlNode@@QAEPAVTiXmlElement@@XZ)
1>ParserXML.obj : error LNK2019: unresolved external symbol "public: class TiXmlAttribute const * __thiscall TiXmlAttribute::Next(void)const " (?Next@TiXmlAttribute@@QBEPBV1@XZ) referenced in function "public: class TiXmlAttribute * __thiscall TiXmlAttribute::Next(void)" (?Next@TiXmlAttribute@@QAEPAV1@XZ)
这是怎么回事啊?谁有工程实例发个给我学习下吧!!急用啊!先谢谢各路大神!