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 Elisha Berns <e....@computer.org> on 2005/03/20 10:20:13 UTC
Link Error or file missing error?
I get a link error when linking the Xerces-c 2.6 DLL:
(apparently the file ContentLeafNameTypeVector.cpp only shows up in the
XercesLib project):
XsdGraph.obj : error LNK2019: unresolved external symbol "public: class
xercesc_2_6::QName * __thiscall
xercesc_2_6::ContentLeafNameTypeVector::getLeafNameAt(unsigned int)const
"
XsdGraph.obj : error LNK2019: unresolved external symbol "public: enum
xercesc_2_6::ContentSpecNode::NodeTypes const __thiscall
xercesc_2_6::ContentLeafNameTypeVector::getLeafTypeAt(unsigned int)const
"
XsdGraph.obj : error LNK2019: unresolved external symbol "public:
unsigned int const __thiscall
xercesc_2_6::ContentLeafNameTypeVector::getLeafCount(void)const "
Debug/XmlToolsTest.exe : fatal error LNK1120: 3 unresolved externals
So is this an error, or is there some other build I need to do to make
sure this file is included in the build?
Thanks for any help here,
Elisha Berns
e.berns@computer.org
tel. (310) 556 - 8332
fax (310) 556 - 2839
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: Link Error or file missing error?
Posted by Alberto Massari <am...@datadirect.com>.
Hi Elisha,
this is bug: the ContentLeafNameTypeVector should be exported from the
Xerces DLL (as objects of this type are returned by the XMLContentModel
class that is exported).
I have fixed it in the CVS version; if you need you can patch your copy of
Xerces by changing the declaration in ContentLeafNameTypeVector.hpp from
class ContentLeafNameTypeVector : public XMemory
to
class XMLPARSER_EXPORT ContentLeafNameTypeVector : public XMemory
Alberto
At 01.20 20/03/2005 -0800, Elisha Berns wrote:
>I get a link error when linking the Xerces-c 2.6 DLL:
>
>(apparently the file ContentLeafNameTypeVector.cpp only shows up in the
>XercesLib project):
>
>XsdGraph.obj : error LNK2019: unresolved external symbol "public: class
>xercesc_2_6::QName * __thiscall
>xercesc_2_6::ContentLeafNameTypeVector::getLeafNameAt(unsigned int)const
>"
>
>XsdGraph.obj : error LNK2019: unresolved external symbol "public: enum
>xercesc_2_6::ContentSpecNode::NodeTypes const __thiscall
>xercesc_2_6::ContentLeafNameTypeVector::getLeafTypeAt(unsigned int)const
>"
>
>XsdGraph.obj : error LNK2019: unresolved external symbol "public:
>unsigned int const __thiscall
>xercesc_2_6::ContentLeafNameTypeVector::getLeafCount(void)const "
>
>Debug/XmlToolsTest.exe : fatal error LNK1120: 3 unresolved externals
>
>So is this an error, or is there some other build I need to do to make
>sure this file is included in the build?
>
>Thanks for any help here,
>
>Elisha Berns
>e.berns@computer.org
>tel. (310) 556 - 8332
>fax (310) 556 - 2839
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
>For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org