473,714 Members | 2,513 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(dll import) public: wchar_t const * __thiscall
xercesc_2_7::XM LException::get Message(void)co nst "
(__imp_?getMess age@XMLExceptio n@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::SA XParser::parse( wchar_t const * const)"
(?parse@SAXPars er@xercesc_2_7@ @UAEXQB_W@Z)
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall xercesc_2_7::SA XParser::docCha racters(wchar_t const * const,unsigned
int,bool)" (?docCharacters @SAXParser@xerc esc_2_7@@UAEXQB _WI_N@Z)
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall xercesc_2_7::SA XParser::docCom ment(wchar_t const * const)"
(?docComment@SA XParser@xercesc _2_7@@UAEXQB_W@ Z)
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall xercesc_2_7::SA XParser::docPI( wchar_t const * const,wchar_t const *
const)" (?docPI@SAXPars er@xercesc_2_7@ @UAEXQB_W0@Z)
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall xercesc_2_7::SA XParser::endEle ment(class xercesc_2_7::XM LElementDecl
const &,unsigned int,bool,wchar_ t const * const)"
(?endElement@SA XParser@xercesc _2_7@@UAEXABVXM LElementDecl@2@ I_NQB_W@Z)
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall xercesc_2_7::SA XParser::ignora bleWhitespace(w char_t const *
const,unsigned int,bool)"
(?ignorableWhit espace@SAXParse r@xercesc_2_7@@ UAEXQB_WI_N@Z)
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall xercesc_2_7::SA XParser::startE lement(class
xercesc_2_7::XM LElementDecl const &,unsigned int,wchar_t const * const,class
xercesc_2_7::Re fVectorOf<class xercesc_2_7::XM LAttr> const &,unsigned
int,bool,bool)"
(?startElement@ SAXParser@xerce sc_2_7@@UAEXABV XMLElementDecl@ 2@IQB_WABV?$Ref VectorOf@VXMLAt tr@xercesc_2_7@ @@2@I_N3@Z)
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall xercesc_2_7::SA XParser::XMLDec l(wchar_t const * const,wchar_t const *
const,wchar_t const * const,wchar_t const * const)"
(?XMLDecl@SAXPa rser@xercesc_2_ 7@@UAEXQB_W000@ Z)
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall xercesc_2_7::XM LDocumentHandle r::elementTypeI nfo(wchar_t const *
const,wchar_t const * const)"
(?elementTypeIn fo@XMLDocumentH andler@xercesc_ 2_7@@UAEXQB_W0@ Z)
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall xercesc_2_7::SA XParser::error( unsigned int,wchar_t const * const,enum
xercesc_2_7::XM LErrorReporter: :ErrTypes,wchar _t const * const,wchar_t const *
const,wchar_t const * const,long,long )"
(?error@SAXPars er@xercesc_2_7@ @UAEXIQB_WW4Err Types@XMLErrorR eporter@2@000JJ @Z)
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual bool
__thiscall xercesc_2_7::SA XParser::expand SystemId(wchar_ t const * const,class
xercesc_2_7::XM LBuffer &)"
(?expandSystemI d@SAXParser@xer cesc_2_7@@UAE_N QB_WAAVXMLBuffe r@2@@Z)
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual
class xercesc_2_7::In putSource * __thiscall
xercesc_2_7::SA XParser::resolv eEntity(wchar_t const * const,wchar_t const *
const,wchar_t const * const)"
(?resolveEntity @SAXParser@xerc esc_2_7@@UAEPAV InputSource@2@Q B_W00@Z)
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall xercesc_2_7::SA XParser::doctyp eComment(wchar_ t const * const)"
(?doctypeCommen t@SAXParser@xer cesc_2_7@@UAEXQ B_W@Z)
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall xercesc_2_7::SA XParser::doctyp eDecl(class xercesc_2_7::DT DElementDecl
const &,wchar_t const * const,wchar_t const * const,bool,bool )"
(?doctypeDecl@S AXParser@xerces c_2_7@@UAEXABVD TDElementDecl@2 @QB_W1_N2@Z)
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall xercesc_2_7::SA XParser::doctyp ePI(wchar_t const * const,wchar_t const
* const)" (?doctypePI@SAX Parser@xercesc_ 2_7@@UAEXQB_W0@ Z)
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall xercesc_2_7::SA XParser::doctyp eWhitespace(wch ar_t const *
const,unsigned int)" (?doctypeWhites pace@SAXParser@ xercesc_2_7@@UA EXQB_WI@Z)
1>SAXCount.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall xercesc_2_7::SA XParser::TextDe cl(wchar_t const * const,wchar_t const
* const)" (?TextDecl@SAXP arser@xercesc_2 _7@@UAEXQB_W0@Z )
1>SAXCount.obj : error LNK2019: unresolved external symbol
"__declspec(dll import) public: static char * __cdecl
xercesc_2_7::XM LString::transc ode(wchar_t const * const)"
(__imp_?transco de@XMLString@xe rcesc_2_7@@SAPA DQB_W@Z) referenced in function
"public: __thiscall StrX::StrX(wcha r_t const * const)" (??0StrX@@QAE@Q B_W@Z)
1>SAXCountHandl ers.obj : error LNK2001: unresolved external symbol
"__declspec(dll import) public: static char * __cdecl
xercesc_2_7::XM LString::transc ode(wchar_t const * const)"
(__imp_?transco de@XMLString@xe rcesc_2_7@@SAPA DQB_W@Z)
1>SAXCountHandl ers.obj : error LNK2001: unresolved external symbol "public:
virtual class xercesc_2_7::In putSource * __thiscall
xercesc_2_7::Ha ndlerBase::reso lveEntity(wchar _t const * const,wchar_t const *
const)" (?resolveEntity @HandlerBase@xe rcesc_2_7@@UAEP AVInputSource@2 @QB_W0@Z)
1>SAXCountHandl ers.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall xercesc_2_7::Ha ndlerBase::nota tionDecl(wchar_ t const *
const,wchar_t const * const,wchar_t const * const)"
(?notationDecl@ HandlerBase@xer cesc_2_7@@UAEXQ B_W00@Z)
1>SAXCountHandl ers.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall xercesc_2_7::Ha ndlerBase::unpa rsedEntityDecl( wchar_t
const * const,wchar_t const * const,wchar_t const * const,wchar_t const *
const)" (?unparsedEntit yDecl@HandlerBa se@xercesc_2_7@ @UAEXQB_W000@Z)
1>SAXCountHandl ers.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall xercesc_2_7::Ha ndlerBase::endE lement(wchar_t const *
const)" (?endElement@Ha ndlerBase@xerce sc_2_7@@UAEXQB_ W@Z)
1>SAXCountHandl ers.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall xercesc_2_7::Ha ndlerBase::proc essingInstructi on(wchar_t
const * const,wchar_t const * const)"
(?processingIns truction@Handle rBase@xercesc_2 _7@@UAEXQB_W0@Z )
1>SAXCountHandl ers.obj : error LNK2019: unresolved external symbol
"__declspec(dll import) public: wchar_t const * __thiscall
xercesc_2_7::SA XParseException ::getSystemId(v oid)const "
(__imp_?getSyst emId@SAXParseEx ception@xercesc _2_7@@QBEPB_WXZ ) referenced in
function "public: virtual void __thiscall SAXCountHandler s::error(class
xercesc_2_7::SA XParseException const &)"
(?error@SAXCoun tHandlers@@UAEX ABVSAXParseExce ption@xercesc_2 _7@@@Z)
1>.\..\..\..\.. \..\bin/SAXCount.exe : fatal error LNK1120: 25 unresolved externals
Mar 28 '06 #1
4 6402
> 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
vsatija
2 New Member
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
vsatija
2 New Member
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
1798
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 symbol: xercesc_2_2::XMLUni::fgXercescDefaultLocale ld: 0711-317 ERROR: Undefined symbol: ..xercesc_2_2::XMLPlatformUtils::Initialize(char const *)
5
6765
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 __imp__Py_InitModule4TraceRefs SO.lib(ScnNode.obj) : error LNK2001: unresolved external symbol __imp___Py_RefTotal
1
4372
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 LNK4075: ignoring /INCREMENTAL due to /FORCE specification LIBC.lib(crt0dat.obj) : warning LNK4006: _exit already defined in MSVCRTD.lib(MSVCRTD.dll); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: __exit already defined in
4
3013
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) : Inconsistent field declarations in duplicated types (types: GCClass; fields: m_blah): (0x04000001). LINK : fatal error LNK1215: metadata operation failed (80131130) :
7
6553
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 LIBCMT(D).DLL. (My requirement is that we can't link with MSVCRT(D).LIB.) Below are steps I've followed, and the resulting problems 1. Using the New Project wizard, generate a Visual C++ .NET Class Library project (call it "Doomed") and a VC++...
0
1666
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 out. Short answer: I should never have expected incremental linking to work. Short answer addendum: Linking is slower in 7.1/.net/2003 than VC++6. ===
6
3447
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 "C"' so that a cross-compiler-usage must be possible. I created an import library (.lib) for MSVC by using the LIB function and using a .DEF file (as described in KB131313 -
5
2849
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 which provides the exchange of documents between a DMS and a remote data base. My developing environment is MSVS v.7.1, and the ASN.1 - source texts are generated with the compiler asn1c-0.9.20. Therefore I have in the project cpp-, as well as c...
2
6011
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 and gsl, more specifically libxerces-c, libgsl, libgslblas. The project comes with an own makefile, automatically generated by Eclipse cdt on Windows, on wich I made some change to fit it for Linux.
0
8795
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9306
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9168
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9068
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9009
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7942
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6621
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4715
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3155
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.