473,221 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,221 software developers and data experts.

Linking error xerces 7.2 and VC++ 8.0

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
4 6355
> 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
> 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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Reinhard Schauer | last post by:
Hi all, I try to build a program on AIX 5.2 with gcc 3.3 using the xerces-c2_2 parser. At the end of the build process I always get the following error messsage: ld: 0711-317 ERROR: Undefined...
5
by: J | last post by:
Hi everyone, I started embedding python into a 3D graphics App and I came across this linking problem. SO.lib(ScnGlobal.obj) : error LNK2001: unresolved external symbol...
1
by: yanwan | last post by:
Hello I met some problems in linking a project, and hope someone can give me some advice. -----------Configuration: lighting - Win32 Release-------------------- Linking... LINK : warning...
4
by: Gary Hughes | last post by:
Hi all, sometime I posted a problem in here where I was getting the following error from the linker in VS C++ 2003. Linking... GCClass.obj : error LNK2022: metadata operation failed (80131188)...
7
by: wmkew | last post by:
Hello everyone I'm encountering a R6002 Runtime error and several bugs when trying to generate a simple Managed C++ application with .NET 2003. The main problem seems to arise from linking with...
0
by: Rudy Ray Moore | last post by:
I've been having trouble getting incremental linking to work under Visual C++ .net 2003 7.1 for my multi-project workspace. Ronald Laeremans and Carl Daniel (and a few others) helped me figure it...
6
by: Uli | last post by:
Hello, I'm trying to use a DLL (by static linking) which was compiled with Borland C++Builder (BCB) in Visual C++ (Visual-Studio 2003). All functions are declared with the directive 'extern...
5
by: eberesche | last post by:
Hello, as a novice in ASN.1 I have me to a project in C ++ under use of ASN.1 - structures risquély. One of my colleagues means, this would deal something with masochism ;-). Result should be a DLL...
2
by: Manuel T | last post by:
Hello everybody, I'm trying to port a project from Windows+Cygwin to Linux(i'm working on a Debian-like: Kubuntu), but I'm facing a lot of linking problems. This project needs libraries xerces...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.