Hi,

I encountered this myself just last week.  If it's the same cause as for myself, and it's quite likely that it will be, check if you have multiple copies of the Xerces-C++ and Xalan-C++ libraries and headers on your search paths.  The cause is that you're using the headers from one version, and the libraries from the other, and that these are not compatible. Remove the old libraries and it will likely solve the problem.

I note that the function signatures all contain wchar_t.  It might be that one version of  the Xerces-C++ library is using wchar_t while the other is using char16_t as the XMLCh type.

Kind regards,

Roger

On 01/06/2020 06:37, girish wrote:
I am trying to migrate my application from VS 2010 to VS2017. My 3rd party
library includes Xalan 1.11 and Xerces 3.2.2 . While compiling one of the
projects ,I was facing the below error. While building the Xerces library I
have treated "XmlCh type  as wchar_t" . It will be highly appreciated if
anyone could figure out the possible reason for the same.

2>XPathWrapper.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __thiscall
xalanc_1_11::XalanDOMString::XalanDOMString(wchar_t const *,class
xercesc_3_2::MemoryManager &,unsigned int)"
(__imp_??0XalanDOMString@xalanc_1_11@@QAE@PB_WAAVMemoryManager@xercesc_3_2@@I@Z)
referenced in function "private: unsigned long __thiscall
SAFe::DOMParser::XPathWrapper::GetXalanNodes(class
std::basic_string<wchar_t,struct std::char_traits&lt;wchar_t>,class
std::allocator<wchar_t> > const &,class xalanc_1_11::NodeRefList &)const "
(?GetXalanNodes@XPathWrapper@DOMParser@SAFe@@ABEKABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@AAVNodeRefList@xalanc_1_11@@@Z)
2>XPathWrapper.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: wchar_t const * __thiscall
xalanc_1_11::XalanDOMString::c_str(void)const "
(__imp_?c_str@XalanDOMString@xalanc_1_11@@QBEPB_WXZ) referenced in function
"private: unsigned long __thiscall
SAFe::DOMParser::XPathWrapper::GetXalanNodes(class
std::basic_string<wchar_t,struct std::char_traits&lt;wchar_t>,class
std::allocator<wchar_t> > const &,class xalanc_1_11::NodeRefList &)const "
(?GetXalanNodes@XPathWrapper@DOMParser@SAFe@@ABEKABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@AAVNodeRefList@xalanc_1_11@@@Z)
2>XPathWrapper.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: class xalanc_1_11::NodeRefList & __thiscall
xalanc_1_11::XPathEvaluator::selectNodeList(class xalanc_1_11::NodeRefList
&,class xalanc_1_11::DOMSupport &,class xalanc_1_11::XalanNode *,wchar_t
const *,class xalanc_1_11::PrefixResolver const &)"
(__imp_?selectNodeList@XPathEvaluator@xalanc_1_11@@QAEAAVNodeRefList@2@AAV32@AAVDOMSupport@2@PAVXalanNode@2@PB_WABVPrefixResolver@2@@Z)
referenced in function "private: unsigned long __thiscall
SAFe::DOMParser::XPathWrapper::GetXalanNodes(class
std::basic_string<wchar_t,struct std::char_traits&lt;wchar_t>,class
std::allocator<wchar_t> > const &,class xalanc_1_11::NodeRefList &)const "
(?GetXalanNodes@XPathWrapper@DOMParser@SAFe@@ABEKABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@AAVNodeRefList@xalanc_1_11@@@Z)
2>.\..\..\exe\release\i386/Common.dll : fatal error LNK1120: 3 unresolved
externals


Best Regards,
Girish





--
Sent from: 
http://apache-xml-project.6118.n7.nabble.com/Xalan-C-Users-f21283.html

Reply via email to