By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,983 Members | 1,582 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,983 IT Pros & Developers. It's quick & easy.

Linking error xerces 7.2 and VC++ 8.0

P: n/a
Folks !

I am working with VC++ after a long time and having problem linking
latest xerces 2.7 in VC++ 2005 Express Edition.

I have done following:

1. downloaded and unpacked the the library:

http://www.apache.org/dist/xml/xerce...00-msvc_60.zip

2. Opened the existing project file that came with samples. Checked that
additional include directories are set. I can compile the samples.
3. Added xerces \bin to path
3. Made sure that xerces-c_2D.lib is included in Configuration properties ->
Linker -> Input -> Additional Dependencies
4. Made sure xerces \bin and \lib directories are in additional refecences path
in Configurations -> References settings.

What more do I have to do to stop following linking error ? It seems like xerces
is not being linked.

thanks so much in advance,

-Sanjay
1>Linking...
1>SAXCount.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: wchar_t const * __thiscall
xercesc_2_7::XMLException::getMessage(void)const "
(__imp_?getMessage@XMLException@xercesc_2_7@@QBEPB _WXZ) referenced in function
__catch$_main$0
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall xercesc_2_7::SAXParser::parse(wchar_t const * const)"
(?parse@SAXParser@xercesc_2_7@@UAEXQB_W@Z)
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall xercesc_2_7::SAXParser::docCharacters(wchar_t const * const,unsigned
int,bool)" (?docCharacters@SAXParser@xercesc_2_7@@UAEXQB_WI_N @Z)
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall xercesc_2_7::SAXParser::docComment(wchar_t const * const)"
(?docComment@SAXParser@xercesc_2_7@@UAEXQB_W@Z)
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall xercesc_2_7::SAXParser::docPI(wchar_t const * const,wchar_t const *
const)" (?docPI@SAXParser@xercesc_2_7@@UAEXQB_W0@Z)
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall xercesc_2_7::SAXParser::endElement(class xercesc_2_7::XMLElementDecl
const &,unsigned int,bool,wchar_t const * const)"
(?endElement@SAXParser@xercesc_2_7@@UAEXABVXMLElem entDecl@2@I_NQB_W@Z)
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall xercesc_2_7::SAXParser::ignorableWhitespace(wchar_ t const *
const,unsigned int,bool)"
(?ignorableWhitespace@SAXParser@xercesc_2_7@@UAEXQ B_WI_N@Z)
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall xercesc_2_7::SAXParser::startElement(class
xercesc_2_7::XMLElementDecl const &,unsigned int,wchar_t const * const,class
xercesc_2_7::RefVectorOf<class xercesc_2_7::XMLAttr> const &,unsigned
int,bool,bool)"
(?startElement@SAXParser@xercesc_2_7@@UAEXABVXMLEl ementDecl@2@IQB_WABV?$RefVectorOf@VXMLAttr@xercesc _2_7@@@2@I_N3@Z)
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall xercesc_2_7::SAXParser::XMLDecl(wchar_t const * const,wchar_t const *
const,wchar_t const * const,wchar_t const * const)"
(?XMLDecl@SAXParser@xercesc_2_7@@UAEXQB_W000@Z)
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall xercesc_2_7::XMLDocumentHandler::elementTypeInfo(w char_t const *
const,wchar_t const * const)"
(?elementTypeInfo@XMLDocumentHandler@xercesc_2_7@@ UAEXQB_W0@Z)
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall xercesc_2_7::SAXParser::error(unsigned int,wchar_t const * const,enum
xercesc_2_7::XMLErrorReporter::ErrTypes,wchar_t const * const,wchar_t const *
const,wchar_t const * const,long,long)"
(?error@SAXParser@xercesc_2_7@@UAEXIQB_WW4ErrTypes @XMLErrorReporter@2@000JJ@Z)
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual bool
__thiscall xercesc_2_7::SAXParser::expandSystemId(wchar_t const * const,class
xercesc_2_7::XMLBuffer &)"
(?expandSystemId@SAXParser@xercesc_2_7@@UAE_NQB_WA AVXMLBuffer@2@@Z)
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual
class xercesc_2_7::InputSource * __thiscall
xercesc_2_7::SAXParser::resolveEntity(wchar_t const * const,wchar_t const *
const,wchar_t const * const)"
(?resolveEntity@SAXParser@xercesc_2_7@@UAEPAVInput Source@2@QB_W00@Z)
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall xercesc_2_7::SAXParser::doctypeComment(wchar_t const * const)"
(?doctypeComment@SAXParser@xercesc_2_7@@UAEXQB_W@Z )
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall xercesc_2_7::SAXParser::doctypeDecl(class xercesc_2_7::DTDElementDecl
const &,wchar_t const * const,wchar_t const * const,bool,bool)"
(?doctypeDecl@SAXParser@xercesc_2_7@@UAEXABVDTDEle mentDecl@2@QB_W1_N2@Z)
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall xercesc_2_7::SAXParser::doctypePI(wchar_t const * const,wchar_t const
* const)" (?doctypePI@SAXParser@xercesc_2_7@@UAEXQB_W0@Z)
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall xercesc_2_7::SAXParser::doctypeWhitespace(wchar_t const *
const,unsigned int)" (?doctypeWhitespace@SAXParser@xercesc_2_7@@UAEXQB_ WI@Z)
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall xercesc_2_7::SAXParser::TextDecl(wchar_t const * const,wchar_t const
* const)" (?TextDecl@SAXParser@xercesc_2_7@@UAEXQB_W0@Z)
1>SAXCount.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)
1>SAXCountHandlers.obj : error LNK2001: 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)
1>SAXCountHandlers.obj : error LNK2001: unresolved external symbol "public:
virtual class xercesc_2_7::InputSource * __thiscall
xercesc_2_7::HandlerBase::resolveEntity(wchar_t const * const,wchar_t const *
const)" (?resolveEntity@HandlerBase@xercesc_2_7@@UAEPAVInp utSource@2@QB_W0@Z)
1>SAXCountHandlers.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall xercesc_2_7::HandlerBase::notationDecl(wchar_t const *
const,wchar_t const * const,wchar_t const * const)"
(?notationDecl@HandlerBase@xercesc_2_7@@UAEXQB_W00 @Z)
1>SAXCountHandlers.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall xercesc_2_7::HandlerBase::unparsedEntityDecl(wchar _t
const * const,wchar_t const * const,wchar_t const * const,wchar_t const *
const)" (?unparsedEntityDecl@HandlerBase@xercesc_2_7@@UAEX QB_W000@Z)
1>SAXCountHandlers.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall xercesc_2_7::HandlerBase::endElement(wchar_t const *
const)" (?endElement@HandlerBase@xercesc_2_7@@UAEXQB_W@Z)
1>SAXCountHandlers.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall xercesc_2_7::HandlerBase::processingInstruction(wc har_t
const * const,wchar_t const * const)"
(?processingInstruction@HandlerBase@xercesc_2_7@@U AEXQB_W0@Z)
1>SAXCountHandlers.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: wchar_t const * __thiscall
xercesc_2_7::SAXParseException::getSystemId(void)c onst "
(__imp_?getSystemId@SAXParseException@xercesc_2_7@ @QBEPB_WXZ) referenced in
function "public: virtual void __thiscall SAXCountHandlers::error(class
xercesc_2_7::SAXParseException const &)"
(?error@SAXCountHandlers@@UAEXABVSAXParseException @xercesc_2_7@@@Z)
1>.\..\..\..\..\..\bin/SAXCount.exe : fatal error LNK1120: 25 unresolved externals
Mar 28 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
> What more do I have to do to stop following linking error ? It seems like
xerces
is not being linked.


I have the same problem, with VC++ 7.1.

Try enable "Treat wchar_t as a builtin" on xerces-all project and rebuild..

Mhaxx
Mar 29 '06 #2

P: n/a
> What more do I have to do to stop following linking error ? It seems like
xerces

http://marc.theaimsgroup.com/?l=xerc...3000830307&w=2

Mhaxx
Mar 29 '06 #3

P: 2
Did any one get solution how to get rid of linking errors. If yes please let me know at vipins@cadence.com

The sample codes from Xerces and compiling properly and I am able to build also. But when I try to build my own MFC application, it fails at the time of linking.

Please let me know if any solution is there.

Regards,
Vipin Satija
vipins@cadence.com
May 10 '06 #4

P: 2
Hi,

The way to get rid of linking error with Xerces 2.7 in MFC application is following

Goto Project -> Properties -> Language

Make property "Treat wchar_t as built-in type" false.

Regards,
Vipin Satija
May 10 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.