Link to home
Start Free TrialLog in
Avatar of Dimkov
Dimkov

asked on

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
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

you to link your project with the xerces library. Which compiler are you using?
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.
Avatar of Dimkov
Dimkov

ASKER

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?
Avatar of Dimkov

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of Dimkov
Dimkov

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial