[xsd-users] Unresolved external symbol Wrapper4InputSource
jimson.james at intellitix.com
jimson.james at intellitix.com
Wed Feb 13 12:09:37 EST 2019
I am trying to use XSD with Xerces-C-3.1.4 static libs (built with VS2017,
Using QT5.9 MSVC2015x86).
Got two unresolved external symbols. Since it is just two errors, I guess
its not the linker pre-processor that's causing this.
Wondering why xercesc_3_1::Wrapper4InputSource::Wrapper4InputSource and
xercesc_3_1::Wrapper4InputSource::~Wrapper4InputSource didn't make it into
the static lib.
helloworld.obj:-1: error: LNK2019: unresolved external symbol
"__declspec(dllimport) public: __thiscall
xercesc_3_1::Wrapper4InputSource::Wrapper4InputSource(class
xercesc_3_1::InputSource * const,bool,class xercesc_3_1::MemoryManager *
const)"
(__imp_??0Wrapper4InputSource at xercesc_3_1@@QAE at QAVInputSource@1 at _NQAVMemoryM
anager at 1@@Z) referenced in function "class std::unique_ptr<class
xercesc_3_1::DOMDocument,struct xsd::cxx::xml::dom::deleter<class
xercesc_3_1::DOMDocument> > __cdecl xsd::cxx::xml::dom::parse<char>(class
xercesc_3_1::InputSource &,class xercesc_3_1::DOMErrorHandler &,class
xsd::cxx::xml::properties<char> const &,unsigned long)"
(??$parse at D@dom at xml@cxx at xsd@@YA?AV?$unique_ptr at VDOMDocument@xercesc_3_1@@U?$
deleter at VDOMDocument@xercesc_3_1@@@dom at xml@cxx at xsd@@@std@@AAVInputSource at xer
cesc_3_1@@AAVDOMErrorHandler at 7@ABV?$properties at D@123 at K@Z)
helloworld.obj:-1: error: LNK2019: unresolved external symbol
"__declspec(dllimport) public: virtual __thiscall
xercesc_3_1::Wrapper4InputSource::~Wrapper4InputSource(void)"
(__imp_??1Wrapper4InputSource at xercesc_3_1@@UAE at XZ) referenced in function
__catch$??$parse at D@dom at xml@cxx at xsd@@YA?AV?$unique_ptr at VDOMDocument@xercesc_3
_1@@U?$deleter at VDOMDocument@xercesc_3_1@@@dom at xml@cxx at xsd@@@std@@AAVInputSou
rce at xercesc_3_1@@AAVDOMErrorHandler at 7@ABV?$properties at D@123 at K@Z$0
debug\testbed.exe:-1: error: LNK1120: 2 unresolved externals
Made a stackoverflow question with all the details too,
https://stackoverflow.com/questions/54674618/mtd-vs-mdd-static-linking-win32
-library-in-qt-creator
Any idea why the Wrapper4InputSource module never made it into the lib???
Btw, dynamic linking workd perfect.
More information about the xsd-users
mailing list