in reply to XMl-Parser build failed on windows X64 with VStuido10
When I searched for one of the symbol in the libexpat.lib file, I found something interesting.Expat.obj : error LNK2001: unresolved external symbol __imp_XML_SetEnd +DoctypeDeclHandler Expat.obj : error LNK2001: unresolved external symbol __imp_XML_GetBas +e Expat.obj : error LNK2001: unresolved external symbol __imp_XML_SetEle +mentDeclHandler Expat.obj : error LNK2001: unresolved external symbol __imp_XML_Defaul +tCurrent Expat.obj : error LNK2001: unresolved external symbol __imp_XML_SetSta +rtCdataSectionHandler ...
The short of it is that the symbol name is not correct. I think the toolchain (gcc, other VC version) used to build libexpat.lib was different from the toolchain that I am using to build XML::Parser::Expat and that is why the link is failing.$ grep _imp__XML_SetCommentHandler libexpat.lib Binary file libexpat.lib matches $ grep __imp_XML_SetCommentHandler libexpat.lib Exit 1
|
|---|