在 vc 6.0 上构建 subversion 1.7.8 libsvn_ra-1.dll 时出现链接器错误。
我在项目设置的预处理器指令中包含 XML_STATIC 并使用了 MFC 共享 dll。
libneon.lib(ne_xml.obj) : error LNK2001: unresolved external symbol
__imp__XML_SetXmlDeclHandler
libneon.lib(ne_xml.obj) : error LNK2001: unresolved external symbol
__imp__XML_SetUserData
libneon.lib(ne_xml.obj) : error LNK2001: unresolved external symbol
__imp__XML_SetCharacterDataHandler
libneon.lib(ne_xml.obj) : error LNK2001: unresolved external symbol
__imp__XML_SetElementHandler
libneon.lib(ne_xml.obj) : error LNK2001: unresolved external symbol
__imp__XML_ParserCreate
libneon.lib(ne_xml.obj) : error LNK2001: unresolved external symbol
__imp__XML_ErrorString
libneon.lib(ne_xml.obj) : error LNK2001: unresolved external symbol
__imp__XML_GetErrorCode
libneon.lib(ne_xml.obj) : error LNK2001: unresolved external symbol __imp__XML_Parse
libneon.lib(ne_xml.obj) : error LNK2001: unresolved external symbol
__imp__XML_ParserFree
..\..\..\\Release\subversion\libsvn_ra\libsvn_ra-1.dll : fatal error LNK1120: 10
unresolved externals
Error executing link.exe.