• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 886
  • Last Modified:

Xerces question

HI, i need to use Xerces, i have downloaded the newest version for C++, build the library... i THINK i connected  it well,
but still I get the fallowing errors:

eVemSetcce error LNK2001: unresolved external symbol "protected: virtual class xercesc_2_8::DOMElement * __thiscall xercesc_2_8::AbstractDOMParser::createElementNSNode(unsigned short const *,unsigned short const *)" (?createElementNSNode@AbstractDOMParser@xercesc_2_8@@MAEPAVDOMElement@2@PBG0@Z)
eVemSetcce error LNK2001: unresolved external symbol "public: virtual bool __thiscall xercesc_2_8::XercesDOMParser::expandSystemId(unsigned short const * const,class xercesc_2_8::XMLBuffer &)" (?expandSystemId@XercesDOMParser@xercesc_2_8@@UAE_NQBGAAVXMLBuffer@2@@Z)
eVemSetcce error LNK2001: unresolved external symbol "public: virtual class xercesc_2_8::InputSource * __thiscall xercesc_2_8::XercesDOMParser::resolveEntity(unsigned short const * const,unsigned short const * const,unsigned short const * const)" (?resolveEntity@XercesDOMParser@xercesc_2_8@@UAEPAVInputSource@2@QBG00@Z)
eVemSetcce error LNK2001: unresolved external symbol "public: virtual void __thiscall xercesc_2_8::AbstractDOMParser::docCharacters(unsigned short const * const,unsigned int,bool)" (?docCharacters@AbstractDOMParser@xercesc_2_8@@UAEXQBGI_N@Z)
eVemSetcce error LNK2001: unresolved external symbol "public: virtual void __thiscall xercesc_2_8::AbstractDOMParser::docComment(unsigned short const * const)" (?docComment@AbstractDOMParser@xercesc_2_8@@UAEXQBG@Z)
eVemSetcce error LNK2001: unresolved external symbol "public: virtual void __thiscall xercesc_2_8::AbstractDOMParser::docPI(unsigned short const * const,unsigned short const * const)" (?docPI@AbstractDOMParser@xercesc_2_8@@UAEXQBG0@Z)
eVemSetcce error LNK2001: unresolved external symbol "public: virtual void __thiscall xercesc_2_8::AbstractDOMParser::doctypeComment(unsigned short const * const)" (?doctypeComment@AbstractDOMParser@xercesc_2_8@@UAEXQBG@Z)

Can anyone give me a step by step how to build xerces? I tried the official website, but they dont have solution for my problem
Thanks
0
Dimkov
Asked:
Dimkov
  • 3
  • 2
1 Solution
 
Jaime OlivaresCommented:
you to link your project with the xerces library. Which compiler are you using?
0
 
Jaime OlivaresCommented:
In all versions of VC++, locate the Project Settings options, Linker options, you will find an option like "Additional libraries",  you have to specify xerces-c_2D.lib, also ensure that library folder is correctly specified to allow the compiler to locate it.
0
 
DimkovAuthor Commented:
hi, i am using VS2003
in additional libreries i have included xerces-c_2D.lib
and library folder is set to "./lib"
i have 3 folders in my project (where vproj is):
"lib"
"include"
"Debug"

in lib i put

xerces-c_2_8D.dll
xerces-c_2D.lib

is this fine?
0
 
DimkovAuthor Commented:
if I change the path (for ex to ./libs) i get an error that the library is not found
i tried to register the dll file, but it says it can not be registered
0
 
DimkovAuthor Commented:
i found the problem:
the lib and dll were given to me builded in vs2005.
the solution was: rebuild the solution xerces-all in vs2003 and use those .lib and .dll files
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now