VC 2005 编译 xerces的例子程序总是报LNK2019的错误?请高手指教!!
城头的土人 2006-11-01 03:55:41 在VC6中没有这个问题,可以顺利编译通过。但在VC2005上无论怎么折腾就是报LNK2019的错误。
编译DOMCount示例的错误信息如下:
错误 2 error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static char * __cdecl xercesc_2_7::XMLString::transcode(wchar_t const * const)" (__imp_?transcode@XMLString@xercesc_2_7@@SAPADQB_W@Z),该符号在函数 "public: __thiscall StrX::StrX(wchar_t const * const)" (??0StrX@@QAE@QB_W@Z) 中被引用 DOMCount.obj
错误 3 error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static bool __cdecl xercesc_2_7::DOMImplementation::loadDOMExceptionMsg(enum xercesc_2_7::DOMException::ExceptionCode,wchar_t * const,unsigned int)" (__imp_?loadDOMExceptionMsg@DOMImplementation@xercesc_2_7@@SA_NW4ExceptionCode@DOMException@2@QA_WI@Z),该符号在函数 __catch$_main$2 中被引用 DOMCount.obj
错误 4 error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static wchar_t const * const xercesc_2_7::XMLUni::fgDOMDatatypeNormalization" (__imp_?fgDOMDatatypeNormalization@XMLUni@xercesc_2_7@@2QB_WB),该符号在函数 _main 中被引用 DOMCount.obj
错误 5 error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static wchar_t const * const xercesc_2_7::XMLUni::fgDOMValidation" (__imp_?fgDOMValidation@XMLUni@xercesc_2_7@@2QB_WB),该符号在函数 _main 中被引用 DOMCount.obj
错误 6 error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static wchar_t const * const xercesc_2_7::XMLUni::fgDOMValidateIfSchema" (__imp_?fgDOMValidateIfSchema@XMLUni@xercesc_2_7@@2QB_WB),该符号在函数 _main 中被引用 DOMCount.obj
错误 7 error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static wchar_t const * const xercesc_2_7::XMLUni::fgXercesSchemaFullChecking" (__imp_?fgXercesSchemaFullChecking@XMLUni@xercesc_2_7@@2QB_WB),该符号在函数 _main 中被引用 DOMCount.obj
错误 8 error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static wchar_t const * const xercesc_2_7::XMLUni::fgXercesSchema" (__imp_?fgXercesSchema@XMLUni@xercesc_2_7@@2QB_WB),该符号在函数 _main 中被引用 DOMCount.obj
错误 9 error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static wchar_t const * const xercesc_2_7::XMLUni::fgDOMNamespaces" (__imp_?fgDOMNamespaces@XMLUni@xercesc_2_7@@2QB_WB),该符号在函数 _main 中被引用 DOMCount.obj
错误 10 error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class xercesc_2_7::DOMImplementation * __cdecl xercesc_2_7::DOMImplementationRegistry::getDOMImplementation(wchar_t const *)" (__imp_?getDOMImplementation@DOMImplementationRegistry@xercesc_2_7@@SAPAVDOMImplementation@2@PB_W@Z),该符号在函数 _main 中被引用 DOMCount.obj