473,412 Members | 2,262 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,412 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 6366
> 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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.