Yes linking paths are correct. I think it is something to do with xerces
build version I am using. Xerces was built using VC-8.0 and my
application is built using VC++ 6.0
Unfortunately I do not know how to build Xerces 3.1.1 using VC++ 6.0
since there is no dsp or dsw file. 

Thanks & Regards
Vikas Agrawal
-----Original Message-----
From: Kun Niu [mailto:[email protected]] 
Sent: 05 October 2010 15:36
To: [email protected]
Subject: Re: LNK2001: unresolved external symbol "public: static
unsigned short const * const xercesc_3_1::XMLUni::fgSAX2CoreNameSpaces

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This is the linking error. Did you configure the linking path properly?

On 10/05/2010 10:34 PM, Agrawal, Vikas wrote:
> Hi,
>
> My project is built in VC++ 6.0 SP5. I have been using xerces 2.7. Now

> I am trying to migrate to xerces 3.1.1 in order to use built in basic 
> xpath feature hence downloaded "xerces-c-3.1.1-x86-windows-vc-8.0".
> Unfortunately, getting following link errors. Any idea what shall I
do?
>
> grammarPool_ = new
> XMLGrammarPoolImpl(XMLPlatformUtils::fgMemoryManager);
> parser_ =
> XMLReaderFactory::createXMLReader(XMLPlatformUtils::fgMemoryManager,
> grammarPool_);
> parser_->setFeature(xercesc_3_1::XMLUni::fgSAX2CoreNameSpaces, true);
>
>
> --------------------Configuration: xmlService - Win32
> Debug--------------------
> Done Searching Libraries
> End Pass1
>    Creating library ..\..\build\dll\debug/xmlService.lib and object 
> ..\..\build\dll\debug/xmlService.exp
> End Generating .exp file
> Searching Libraries
>     Searching ..\..\3rdParty\dll\debug\tinyxpathd.lib:
>     Searching ..\..\3rdParty\dll\debug\ACEd.lib:
>     Searching ..\..\3rdParty\dll\debug\xerces-c_3D.lib:
>     Searching ..\..\build\dll\debug\InfinityUtilService.lib:
>     Searching
> \Vikas\Workspace\fog\branches\DTCC_CLS\build\dll\debug\InfinityUtilSer
> vi
> ce.lib:
>     Searching C:\Program Files\Microsoft Visual
> Studio\VC98\LIB\ws2_32.lib:
>     Searching C:\Program Files\Microsoft Visual
> Studio\VC98\LIB\mswsock.lib:
>     Searching C:\Program Files\Microsoft Visual
> Studio\VC98\LIB\netapi32.lib:
>     Searching C:\Program Files\Microsoft Visual
> Studio\VC98\LIB\msvcprtd.lib:
>     Searching C:\Program Files\Microsoft Visual
> Studio\VC98\LIB\msvcirtd.lib:
>     Searching C:\Program Files\Microsoft Visual
> Studio\VC98\LIB\MSVCRTD.lib:
>     Searching C:\Program Files\Microsoft Visual
> Studio\VC98\LIB\OLDNAMES.lib:
>     Searching C:\Program Files\Microsoft Visual
> Studio\VC98\LIB\kernel32.lib:
> Done Searching Libraries
> End Pass1
> InfMLValidator.obj : error LNK2001: unresolved external symbol
"public:
> static unsigned short const * const
> xercesc_3_1::XMLUni::fgSAX2CoreNameSpaces"
> (?fgsax2corenamespa...@xmluni@xercesc_3_1@@2QBGB)
> InfMLValidator.obj : error LNK2001: unresolved external symbol
"public:
> static class xercesc_3_1::MemoryManager * 
> xercesc_3_1::XMLPlatformUtils::fgMemoryManager"
> (?fgmemorymana...@xmlplatformutils@xercesc_3_1@@2pavmemorymana...@2@A)
> RBCXMLPlatformUtils.obj : error LNK2001: unresolved external symbol
> "public: static class xercesc_3_1::MemoryManager * 
> xercesc_3_1::XMLPlatformUtils::fgMemoryManager"
> (?fgmemorymana...@xmlplatformutils@xercesc_3_1@@2pavmemorymana...@2@A)
> InfMLValidator.obj : error LNK2001: unresolved external symbol
"public:
> unsigned short const * __thiscall
> xercesc_3_1::SAXParseException::getSystemId(void)const "
> (?getsyste...@saxparseexception@xercesc_3_1@@QBEPBGXZ)
> InfMLValidator.obj : error LNK2001: unresolved external symbol
"public:
> unsigned int __thiscall
> xercesc_3_1::SAXParseException::getLineNumber(void)const "
> (?getlinenum...@saxparseexception@xercesc_3_1@@QBEIXZ)
> InfMLValidator.obj : error LNK2001: unresolved external symbol
"public:
> unsigned int __thiscall
> xercesc_3_1::SAXParseException::getColumnNumber(void)const "
> (?getcolumnnum...@saxparseexception@xercesc_3_1@@QBEIXZ)
> RBCXMLPlatformUtils.obj : error LNK2001: unresolved external symbol
> "public: static char const * const
> xercesc_3_1::XMLUni::fgXercescDefaultLocale"
> (?fgxercescdefaultloc...@xmluni@xercesc_3_1@@2QBDB)
> ..\..\build\dll\debug/xmlService.dll : fatal error LNK1120: 6 
> unresolved externals Error executing link.exe.
>
> Thanks & Regards
> Vikas Agrawal
>
>
> ______________________________________________________________________
> _
>
> This email is intended only for the use of the individual(s) to whom 
> it is addressed and may be privileged and confidential.
>
> Unauthorised use or disclosure is prohibited. If you receive this 
> e-mail in error, please advise immediately and delete the original 
> message without copying, using, or telling anyone about its contents.
>
> This message may have been altered without your or our knowledge and 
> the sender does not accept any liability for any errors or omissions 
> in the message.
>
> This message does not create or change any contract.  Royal Bank of 
> Canada and its subsidiaries accept no responsibility for damage caused

> by any viruses contained in this email or its attachments.  Emails may

> be monitored.
>
> RBC Capital Markets is a business name used by branches and 
> subsidiaries of Royal Bank of Canada, including Royal Bank of Canada, 
> London branch and Royal Bank of Canada Europe Limited. In accordance 
> with English law requirements, details regarding Royal Bank of Canada 
> Europe Limited are set out below:
>
> ROYAL BANK OF CANADA EUROPE LIMITED
> Registered in England and Wales 995939 Registered Address: 71 Queen 
> Victoria Street, London, EC4V 4DE.
> Authorised and regulated by the Financial Services Authority.
> Member of the London Stock Exchange
>

- --
Kun Niu

MSIT-SM program

Information Networking Institute

Carnegie Mellon University

4616 Henry St., Pittsburgh, PA 15213

Phone:1(412)608-8815
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJMqzfgAAoJEGYb5wqG7F0ILRQH/A3eRjpcLCMEXn01q7EnHPIB
IQY5nCGWvzd0BkDef0dLgLNBI1AK618k6OK46dqFIJ1f9JYKg0zjq5AutpUSdpPB
BGQwnA0xTrDQlma7slm6SyOAdtA1sN7iHY49zN1tq6LVcMgOqSeWBsKiBweWf+5k
sOlPyr1NcXkuLTqG6k9s/niEIyz0rJ0J3VDbsvNxoyRmMLPxOz+oJCwgXd1rO1oc
Y7Bm5M/zPC4gI/wzEgSb3f2V0B4AjF5sI/xgEoqUAzDghRTNwPJJceaLVWCf5ZqR
mI0x5qHjRDAiSue1u1zyS89jYbocpZ7XwYaXcV9/gCCvp00mKp5eujlSGiGceSM=
=0Zqc
-----END PGP SIGNATURE-----

Reply via email to