You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by E V K <el...@netscape.net> on 2007/03/16 23:38:25 UTC

VC++ 8.0 Xerces Linking Errors

Hi I am a novice to both VC++ 8.0 and Xerces 2_7_0.  I had followed
suggestions on different posts, but they don't seem to take care of the
problems I have. 

When I try to Compile one of the samples: DOMCount.cpp

I get link errors

DOMCount.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static char * __cdecl
xercesc_2_7::XMLString::transcode(wchar_t const * const)"
(__imp_?transcode@XMLString@xercesc_2_7@@SAPADQB_W@Z) referenced in function
"public: __thiscall StrX::StrX(wchar_t const * const)" (??0StrX@@QAE@QB_W@Z)
DOMCount.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static void __cdecl
xercesc_2_7::XMLString::release(char * *)"
(__imp_?release@XMLString@xercesc_2_7@@SAXPAPAD@Z) referenced in function
"public: __thiscall StrX::~StrX(void)" (??1StrX@@QAE@XZ)
DOMCount.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) const xercesc_2_7::DOMErrorHandler::`vftable'"
(__imp_??_7DOMErrorHandler@xercesc_2_7@@6B@) referenced in function "public:
virtual __thiscall DOMCountErrorHandler::~DOMCountErrorHandler(void)"
(??1DOMCountErrorHandler@@UAE@XZ)
DOMCount.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static void __cdecl
xercesc_2_7::XMLPlatformUtils::Terminate(void)"
(__imp_?Terminate@XMLPlatformUtils@xercesc_2_7@@SAXXZ) referenced in
function __catch$_main$2
DOMCount.obj : error LNK2019: unresolved external symbol
"__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)
referenced in function __catch$_main$2
DOMCount.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static unsigned long __cdecl
xercesc_2_7::XMLPlatformUtils::getCurrentMillis(void)"
(__imp_?getCurrentMillis@XMLPlatformUtils@xercesc_2_7@@SAKXZ) referenced in
function _main
DOMCount.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static wchar_t const * const
xercesc_2_7::XMLUni::fgDOMDatatypeNormalization"
(__imp_?fgDOMDatatypeNormalization@XMLUni@xercesc_2_7@@2QB_WB) referenced in
function _main
DOMCount.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static wchar_t const * const
xercesc_2_7::XMLUni::fgDOMValidation"
(__imp_?fgDOMValidation@XMLUni@xercesc_2_7@@2QB_WB) referenced in function
_main
DOMCount.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static wchar_t const * const
xercesc_2_7::XMLUni::fgDOMValidateIfSchema"
(__imp_?fgDOMValidateIfSchema@XMLUni@xercesc_2_7@@2QB_WB) referenced in
function _main
DOMCount.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static wchar_t const * const
xercesc_2_7::XMLUni::fgXercesSchemaFullChecking"
(__imp_?fgXercesSchemaFullChecking@XMLUni@xercesc_2_7@@2QB_WB) referenced in
function _main
DOMCount.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static wchar_t const * const
xercesc_2_7::XMLUni::fgXercesSchema"
(__imp_?fgXercesSchema@XMLUni@xercesc_2_7@@2QB_WB) referenced in function
_main
DOMCount.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static wchar_t const * const
xercesc_2_7::XMLUni::fgDOMNamespaces"
(__imp_?fgDOMNamespaces@XMLUni@xercesc_2_7@@2QB_WB) referenced in function
_main
DOMCount.obj : error LNK2019: unresolved external symbol
"__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)
referenced in function _main
DOMCount.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static void __cdecl
xercesc_2_7::XMLPlatformUtils::recognizeNEL(bool,class
xercesc_2_7::MemoryManager * const)"
(__imp_?recognizeNEL@XMLPlatformUtils@xercesc_2_7@@SAX_NQAVMemoryManager@2@@Z)
referenced in function _main
DOMCount.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static class xercesc_2_7::MemoryManager *
xercesc_2_7::XMLPlatformUtils::fgMemoryManager"
(__imp_?fgMemoryManager@XMLPlatformUtils@xercesc_2_7@@2PAVMemoryManager@2@A)
referenced in function _main
DOMCount.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static void __cdecl
xercesc_2_7::XMLPlatformUtils::Initialize(char const * const,char const *
const,class xercesc_2_7::PanicHandler * const,class
xercesc_2_7::MemoryManager * const,bool)"
(__imp_?Initialize@XMLPlatformUtils@xercesc_2_7@@SAXQBD0QAVPanicHandler@2@QAVMemoryManager@2@_N@Z)
referenced in function _main

When I compile XMLString.cpp I get a compile error: 
..\..\..\..\..\..\..\Program Files\Microsoft Visual
Studio\xerces-c-src_2_7_0\src\xercesc\util\XMLString.cpp(65) : error C2491:
'xercesc_2_7::XMLString::fgMemoryManager' : definition of dllimport static
data member not allowed

I had added to Tools-> Options: VC++ Directories

Include Files:
C:\Program Files\Microsoft Visual Studio\xerces-c-src_2_7_0\src
<xercesdir>\include

Library Files:
C:\Program Files\Microsoft Visual
Studio\xerces-c-src_2_7_0\Build\Win32\VC7.1\Debug
<xercesdir>\lib

Thanks so mush in advance,
E V K




-- 
View this message in context: http://www.nabble.com/VC%2B%2B-8.0-Xerces-Linking-Errors-tf3417205.html#a9523759
Sent from the Xerces - J - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org


Re: VC++ 8.0 Xerces Linking Errors

Posted by Michael Glavassevich <mr...@ca.ibm.com>.
Hi E V K,

This is the Xerces-J users list. Questions about Xerces-C should be posted 
to c-users@xerces.apache.org.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org

E V K <el...@netscape.net> wrote on 03/16/2007 06:38:25 PM:

> 
> Hi I am a novice to both VC++ 8.0 and Xerces 2_7_0.  I had followed
> suggestions on different posts, but they don't seem to take care of the
> problems I have. 
> 

<snip/>

> 
> Thanks so mush in advance,
> E V K
> 
> 
> 
> 
> -- 
> View this message in context: http://www.nabble.com/VC%2B%2B-8.0-
> Xerces-Linking-Errors-tf3417205.html#a9523759
> Sent from the Xerces - J - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
> For additional commands, e-mail: j-users-help@xerces.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org