The __imp_ prefixes mean that the linker is looking for a DLL. For static linking, the XML_STATIC macro has to be defined in the code that links to Expat.
My solution for this problem: configure with the --without-neon option. :) > -----Original Message----- > From: Mark Raymond [mailto:ma...@raymonds.org.uk] > Sent: Monday, March 12, 2012 12:51 PM > To: users@subversion.apache.org > Subject: Compiling Subversion on Windows > > Hi, > > I've been attempting to compile Subversion on Windows (64-bit). I've been > able to solve most of the issues I had when compiling, but there's just one > file left that is refusing to compile - libsvn_ra-1.dll. > The build environment is Visual Studio 2008 on Windows 7 64-bit, using the > x64 Cross Tools Command Prompt. > > I get the following error at the link stage: > > libneon.lib(ne_openssl.obj) : error LNK2019: unresolved external symbol > SSL_SESSION_cmp referenced in function ne__negotiate_ssl > libneon.lib(ne_xml.obj) : error LNK2019: unresolved external symbol > __imp_XML_GetCurrentLineNumber referenced in function > ne_xml_currentline > libneon.lib(ne_xml.obj) : error LNK2019: unresolved external symbol > __imp_XML_ErrorString referenced in function ne_xml_parse > libneon.lib(ne_xml.obj) : error LNK2019: unresolved external symbol > __imp_XML_GetErrorCode referenced in function ne_xml_parse > libneon.lib(ne_xml.obj) : error LNK2019: unresolved external symbol > __imp_XML_Parse referenced in function ne_xml_parse > libneon.lib(ne_xml.obj) : error LNK2019: unresolved external symbol > __imp_XML_ParserFree referenced in function ne_xml_destroy > libneon.lib(ne_xml.obj) : error LNK2019: unresolved external symbol > __imp_XML_SetXmlDeclHandler referenced in function ne_xml_create > libneon.lib(ne_xml.obj) : error LNK2019: unresolved external symbol > __imp_XML_SetUserData referenced in function ne_xml_create > libneon.lib(ne_xml.obj) : error LNK2019: unresolved external symbol > __imp_XML_SetCharacterDataHandler referenced in function > ne_xml_create > libneon.lib(ne_xml.obj) : error LNK2019: unresolved external symbol > __imp_XML_SetElementHandler referenced in function ne_xml_create > libneon.lib(ne_xml.obj) : error LNK2019: unresolved external symbol > __imp_XML_ParserCreate referenced in function ne_xml_create > ..\..\..\Release\subversion\libsvn_ra\libsvn_ra-1.dll : fatal error LNK1120: > 11 unresolved externals > > I've checked xml.lib (from expat, in apr-util), which is where I think these > symbols should be, and it contains the symbols but without the __imp_ at > the beginning. > I guess this is some issue with name mangling, but I don't really know how to > approach solving it! > > Thanks, > Mark.