You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Mirko Braun <tb...@Softing.com> on 2003/11/21 15:59:56 UTC
unresolved linking errors caused by C++ namespaces
Hi to all,
we use the Xerces-C++ to import XML data into our application.
The development enviroment is MSVS 6.0.
Yesterday i tried to update Xerces from version 2.1.0 to 2.3.0.
The version 2.3.0 uses C++ namespaces. This fact leads to some
problems. I read the programmers guide and had a look at the examples to
solve the problems.
But there are still some linking errors.
Can somebody give me a helping hand? Is it possible to disable the
namespace feature?
Thanks in advance, Mirko
An example of my code of the class XMLDOMEntityResolver and the some error
message
which were generate by the compiler of the MSVS 6.0 concerning to this
class is shown below.
#include <xercesc\sax\EntityResolver.hpp>
#include <xercesc\util\XercesDefs.hpp>
XERCES_CPP_NAMESPACE_USE
//##ModelId=3D3D6A6E0302
class XMLDOMEntityResolver : public EntityResolver
{
public:
.
.
.
error messages:
XMLDOMEntityResolver.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static void * __cdecl
XMemory::operator new(unsigned int)" (__imp_??2XMemory@@SAPAXI@Z)
XMLDOMEntityResolver.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: virtual __thiscall
EntityResolver::~EntityResolver(void)" (__imp_??1EntityResolver@@UAE@XZ)
XMLDOMEntityResolver.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: __thiscall
EntityResolver::EntityResolver(void)" (__imp_??0EntityResolver@@QAE@XZ)
XMLDOMEntityResolver.obj : error LNK2001: unresolved external symbol
"public: virtual void __thiscall
InputSource::setIssueFatalErrorIfNotFound(bool)"
(?setIssueFatalErrorIfNotFound@InputSource@@UAEX_N@Z)
XMLDOMEntityResolver.obj : error LNK2001: unresolved external symbol
"public: virtual void __thiscall
InputSource::setSystemId(unsigned short const * const)"
(?setSystemId@InputSource@@UAEXQBG@Z)
XMLDOMEntityResolver.obj : error LNK2001: unresolved external symbol
"public: virtual void __thiscall
InputSource::setPublicId(unsigned short const * const)"
(?setPublicId@InputSource@@UAEXQBG@Z)
XMLDOMEntityResolver.obj : error LNK2001: unresolved external symbol
"public: virtual void __thiscall
InputSource::setEncoding(unsigned short const * const)"
(?setEncoding@InputSource@@UAEXQBG@Z)
____________________________________
Mirko Braun
Automotive Electronics Tools
Softing AG
Richard-Reitzner-Allee 6
D-85540 Haar
Tel: +49 (0) 89 / 456 56 - 465
Fax: +49 (0) 89 / 456 56 - 499
mailto:mirko.braun@softing.com
http://www.softing.com
____________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org