【发布时间】:2014-05-06 06:29:18
【问题描述】:
我是 Xercesc 的新手。我在我的项目属性->链接器附加库中包含了 xerces 静态库 xerces-c_static_3D.lib。使用 xerces 的所有其他东西都可以正常工作,但是当我添加这一行时,
XMLCh* paramStr = XMLString::transcode("param");
我收到以下错误。请告诉我为什么会这样?
LNK2001:未解析的外部符号“__declspec(dllimport) public: static unsigned short * __cdecl xercesc_3_1::XMLString::transcode(char const * const,class xercesc_3_1::MemoryManager * const)” (__imp_?transcode@XMLString@xercesc_3_1 @@SAPAGQBDQAVMemoryManager@2@@Z)
3>a.lib(MetaFileReader.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void __cdecl xercesc_3_1::XMLString::release(unsigned short * *,class xercesc_3_1::MemoryManager * const )" (__imp_?release@XMLString@xercesc_3_1@@SAXPAPAGQAVMemoryManager@2@@Z)
3>a.lib(MetaFileReader.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static char * __cdecl xercesc_3_1::XMLString::transcode(unsigned short const * const,class xercesc_3_1::MemoryManager * const)" (__imp_?transcode@XMLString@xercesc_3_1@@SAPADQBGQAVMemoryManager@2@@Z)
【问题讨论】: