Hi Lee,
I am using TinyXML already which is working great. Thought of trying TinyXML2 but when i created a sample project and added tinyxm2.cpp/tinyxml.h and when complied i get linker errors as,
tinyxml2.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl tinyxml2::XMLText::SetCData(bool)" (__imp_?SetCData@XMLText@tinyxml2@@QEAAX_N@Z) referenced in function "public: char * __cdecl tinyxml2::XMLDocument::Identify(char *,class tinyxml2::XMLNode * *)" (?Identify@XMLDocument@tinyxml2@@QEAAPEADPEADPEAPEAVXMLNode@2@@Z)
1>tinyxml2.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) protected: __cdecl tinyxml2::XMLText::XMLText(class tinyxml2::XMLDocument *)" (__imp_??0XMLText@tinyxml2@@IEAA@PEAVXMLDocument@1@@Z) referenced in function "public: char * __cdecl tinyxml2::XMLDocument::Identify(char *,class tinyxml2::XMLNode * *)" (?Identify@XMLDocument@tinyxml2@@QEAAPEADPEADPEAPEAVXMLNode@2@@Z)
1>tinyxml2.obj : error LNK2001: unresolved external symbol "public: virtual class tinyxml2::XMLElement const * __cdecl tinyxml2::XMLNode::ToElement(void)const " (?ToElement@XMLNode@tinyxml2@@UEBAPEBVXMLElement@2@XZ)
1>tinyxml2.obj : error LNK2001: unresolved external symbol "public: virtual class tinyxml2::XMLElement * __cdecl tinyxml2::XMLNode::ToElement(void)" (?ToElement@XMLNode@tinyxml2@@UEAAPEAVXMLElement@2@XZ)
1>tinyxml2.obj : error LNK2001: unresolved external symbol "public: virtual class tinyxml2::XMLText const * __cdecl tinyxml2::XMLNode::ToText(void)const " (?ToText@XMLNode@tinyxml2@@UEBAPEBVXMLText@2@XZ)
1>tinyxml2.obj : error LNK2001: unresolved external symbol "public: virtual class tinyxml2::XMLText * __cdecl tinyxml2::XMLNode::ToText(void)" (?ToText@XMLNode@tinyxml2@@UEAAPEAVXMLText@2@XZ)
1>tinyxml2.obj : error LNK2001: unresolved external symbol "public: virtual class tinyxml2::XMLComment const * __cdecl tinyxml2::XMLNode::ToComment(void)const " (?ToComment@XMLNode@tinyxml2@@UEBAPEBVXMLComment@2@XZ)
1>tinyxml2.obj : error LNK2001: unresolved external symbol "public: virtual class tinyxml2::XMLComment * __cdecl tinyxml2::XMLNode::ToComment(void)" (?ToComment@XMLNode@tinyxml2@@UEAAPEAVXMLComment@2@XZ)
1>tinyxml2.obj : error LNK2001: unresolved external symbol "public: virtual class tinyxml2::XMLDocument const * __cdecl tinyxml2::XMLNode::ToDocument(void)const " (?ToDocument@XMLNode@tinyxml2@@UEBAPEBVXMLDocument@2@XZ)
1>tinyxml2.obj : error LNK2001: unresolved external symbol "public: virtual class tinyxml2::XMLDocument * __cdecl tinyxml2::XMLNode::ToDocument(void)" (?ToDocument@XMLNode@tinyxml2@@UEAAPEAVXMLDocument@2@XZ)
1>tinyxml2.obj : error LNK2001: unresolved external symbol "public: virtual class tinyxml2::XMLDeclaration const * __cdecl tinyxml2::XMLDeclaration::ToDeclaration(void)const " (?ToDeclaration@XMLDeclaration@tinyxml2@@UEBAPEBV12@XZ)
1>tinyxml2.obj : error LNK2001: unresolved external symbol "public: virtual class tinyxml2::XMLDeclaration * __cdecl
Can you share the sample project file? I'm using VS2010 and have had no issues so far.
thanks a lot. I got it resolved myself.
@vigneshrams can you tell us how you resolved it? I'm coming across this as well.
Most helpful comment
@vigneshrams can you tell us how you resolved it? I'm coming across this as well.