You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by VegasGod <ja...@gmail.com> on 2012/01/31 20:07:22 UTC

Visual Studio 2005 linker error while compiling Xerces

Hi,
I am trying to compile Xerces(2.3.0) on Visual Studio 2005( VC++ 8.0 ) and
am runnnig into linker errors. I have not found any thread that is
discussing this. Here is the sampling of the errors...

1>ParentNode.obj : error LNK2001: unresolved external symbol "private:
__thiscall xercesc_2_3::XMemory::XMemory(class xercesc_2_3::XMemory const
&)" (??0XMemory@xercesc_2_3@@AAE@ABV01@@Z)
1>RangeImpl.obj : error LNK2001: unresolved external symbol "private:
__thiscall xercesc_2_3::XMemory::XMemory(class xercesc_2_3::XMemory const
&)" (??0XMemory@xercesc_2_3@@AAE@ABV01@@Z)
1>TextImpl.obj : error LNK2001: unresolved external symbol "private:
__thiscall xercesc_2_3::XMemory::XMemory(class xercesc_2_3::XMemory const
&)" (??0XMemory@xercesc_2_3@@AAE@ABV01@@Z)
1>TreeWalkerImpl.obj : error LNK2019: unresolved external symbol "private:
__thiscall xercesc_2_3::XMemory::XMemory(class xercesc_2_3::XMemory const
&)" (??0XMemory@xercesc_2_3@@AAE@ABV01@@Z) referenced in function "public:
virtual class xercesc_2_3::XMLException * __thiscall
xercesc_2_3::NullPointerException::duplicate(void)const "
(?duplicate@NullPointerException@xercesc_2_3@@UBEPAVXMLException@2@XZ)


Must be something simple, but I am not able to put my finger on it. Please
any help is greatly appreciated.

Thanks

-- 
View this message in context: http://old.nabble.com/Visual-Studio-2005-linker-error-while-compiling-Xerces-tp33238565p33238565.html
Sent from the Xerces - C - Users mailing list archive at Nabble.com.


Re: Visual Studio 2005 linker error while compiling Xerces

Posted by VegasGod <ja...@gmail.com>.
I got rid of the error by commenting out two unimplemented methods in
XMemory.hpp

    XMemory(const XMemory&);
    XMemory& operator=(const XMemory&);

But I didn't understand why this is there in the first place. Can someone
throw some light on this?

Thanks


VegasGod wrote:
> 
> Hi,
> I am trying to compile Xerces(2.3.0) on Visual Studio 2005( VC++ 8.0 ) and
> am runnnig into linker errors. I have not found any thread that is
> discussing this. Here is the sampling of the errors...
> 
> 1>ParentNode.obj : error LNK2001: unresolved external symbol "private:
> __thiscall xercesc_2_3::XMemory::XMemory(class xercesc_2_3::XMemory const
> &)" (??0XMemory@xercesc_2_3@@AAE@ABV01@@Z)
> 1>RangeImpl.obj : error LNK2001: unresolved external symbol "private:
> __thiscall xercesc_2_3::XMemory::XMemory(class xercesc_2_3::XMemory const
> &)" (??0XMemory@xercesc_2_3@@AAE@ABV01@@Z)
> 1>TextImpl.obj : error LNK2001: unresolved external symbol "private:
> __thiscall xercesc_2_3::XMemory::XMemory(class xercesc_2_3::XMemory const
> &)" (??0XMemory@xercesc_2_3@@AAE@ABV01@@Z)
> 1>TreeWalkerImpl.obj : error LNK2019: unresolved external symbol "private:
> __thiscall xercesc_2_3::XMemory::XMemory(class xercesc_2_3::XMemory const
> &)" (??0XMemory@xercesc_2_3@@AAE@ABV01@@Z) referenced in function "public:
> virtual class xercesc_2_3::XMLException * __thiscall
> xercesc_2_3::NullPointerException::duplicate(void)const "
> (?duplicate@NullPointerException@xercesc_2_3@@UBEPAVXMLException@2@XZ)
> 
> 
> Must be something simple, but I am not able to put my finger on it. Please
> any help is greatly appreciated.
> 
> Thanks
> 
> 

-- 
View this message in context: http://old.nabble.com/Visual-Studio-2005-linker-error-while-compiling-Xerces-tp33238565p33239476.html
Sent from the Xerces - C - Users mailing list archive at Nabble.com.