Hi, Are you trying a Debug or Release build in VC ?
Thanks. On Sun, Jul 4, 2010 at 9:25 AM, Jan Dinger <dinger....@googlemail.com>wrote: > Hello folks, > > I've downloaded this package: xerces-c-3.1.1-x86_64-windows-vc-10.0.zip > If i compiled my sample program, my compiler (msvc 10) throws a lot of > errors: > > ### snip ### > > parser.obj : error LNK2019: unresolved external symbol > "__declspec(dllimport) public: __thiscall > xercesc_3_1::DefaultHandler::DefaultHandler(void)" > (__imp_??0defaulthand...@xercesc_3_1@@q...@xz) referenced in function > "public: __thiscall parser::SimpleParser::SimpleParser(char const *)" > (??0simplepar...@parser@@q...@pbd@Z) > 1>parser.obj : error LNK2001: unresolved external symbol "public: > virtual class xercesc_3_1::InputSource * __thiscall > xercesc_3_1::DefaultHandler::resolveEntity(unsigned short const * > const,unsigned short const * const)" > (?resolveent...@defaulthandler@xercesc_3_1@@uaepavinputsou...@2@q...@z) > 1>parser.obj : error LNK2001: unresolved external symbol "public: > virtual void __thiscall > xercesc_3_1::DefaultHandler::resetDocument(void)" > (?resetdocum...@defaulthandler@xercesc_3_1@@UAEXXZ) > 1>parser.obj : error LNK2001: unresolved external symbol "public: > virtual void __thiscall > xercesc_3_1::DefaultHandler::notationDecl(unsigned short const * > const,unsigned short const * const,unsigned short const * const)" > (?notationd...@defaulthandler@xercesc_3_1@@uaexqb...@z) > 1>parser.obj : error LNK2001: unresolved external symbol "public: > virtual void __thiscall > xercesc_3_1::DefaultHandler::unparsedEntityDecl(unsigned short const * > const,unsigned short const * const,unsigned short const * > const,unsigned short const * const)" > (?unparsedentityd...@defaulthandler@xercesc_3_1@@uaexqbg...@z) > 1>parser.obj : error LNK2001: unresolved external symbol "public: > virtual void __thiscall > xercesc_3_1::DefaultHandler::resetDocType(void)" > (?resetdoct...@defaulthandler@xercesc_3_1@@UAEXXZ) > 1>parser.obj : error LNK2001: unresolved external symbol "public: > virtual void __thiscall > xercesc_3_1::DefaultHandler::characters(unsigned short const * > const,unsigned long)" > (?charact...@defaulthandler@xercesc_3_1@@uaexq...@z) > 1>parser.obj : error LNK2001: unresolved external symbol "public: > virtual void __thiscall > xercesc_3_1::DefaultHandler::endDocument(void)" > (?enddocum...@defaulthandler@xercesc_3_1@@UAEXXZ) > 1>parser.obj : error LNK2001: unresolved external symbol "public: > virtual void __thiscall > xercesc_3_1::DefaultHandler::endElement(unsigned short const * > const,unsigned short const * const,unsigned short const * const)" > (?endelem...@defaulthandler@xercesc_3_1@@uaexqb...@z) > 1>parser.obj : error LNK2001: unresolved external symbol "public: > virtual void __thiscall > xercesc_3_1::DefaultHandler::ignorableWhitespace(unsigned short const > * const,unsigned long)" > (?ignorablewhitesp...@defaulthandler@xercesc_3_1@@uaexq...@z) > 1>parser.obj : error LNK2001: unresolved external symbol "public: > virtual void __thiscall > xercesc_3_1::DefaultHandler::processingInstruction(unsigned short > const * const,unsigned short const * const)" > (?processinginstruct...@defaulthandler@xercesc_3_1@@uaexq...@z) > 1>parser.obj : error LNK2001: unresolved external symbol "public: > virtual void __thiscall > xercesc_3_1::DefaultHandler::setDocumentLocator(class > xercesc_3_1::Locator const * const)" > (?setdocumentloca...@defaulthandler@xercesc_3_1@@uaexqbvloca...@2@@Z) > 1>parser.obj : error LNK2001: unresolved external symbol "public: > virtual void __thiscall > xercesc_3_1::DefaultHandler::startDocument(void)" > (?startdocum...@defaulthandler@xercesc_3_1@@UAEXXZ) > 1>parser.obj : error LNK2001: unresolved external symbol "public: > virtual void __thiscall > xercesc_3_1::DefaultHandler::startPrefixMapping(unsigned short const * > const,unsigned short const * const)" > (?startprefixmapp...@defaulthandler@xercesc_3_1@@uaexq...@z) > 1>parser.obj : error LNK2001: unresolved external symbol "public: > virtual void __thiscall > xercesc_3_1::DefaultHandler::endPrefixMapping(unsigned short const * > const)" (?endprefixmapp...@defaulthandler@xercesc_3_1@@uaex...@z) > 1>parser.obj : error LNK2001: unresolved external symbol "public: > virtual void __thiscall > xercesc_3_1::DefaultHandler::skippedEntity(unsigned short const * > const)" (?skippedent...@defaulthandler@xercesc_3_1@@uaex...@z) > 1>parser.obj : error LNK2001: unresolved external symbol "public: > virtual void __thiscall xercesc_3_1::DefaultHandler::warning(class > xercesc_3_1::SAXParseException const &)" > (?warn...@defaulthandler@xercesc_3_1@@uaexabvsaxparseexcept...@2@@Z) > 1>parser.obj : error LNK2001: unresolved external symbol "public: > virtual void __thiscall xercesc_3_1::DefaultHandler::error(class > xercesc_3_1::SAXParseException const &)" > (?er...@defaulthandler@xercesc_3_1@@uaexabvsaxparseexcept...@2@@Z) > 1>parser.obj : error LNK2001: unresolved external symbol "public: > virtual void __thiscall > xercesc_3_1::DefaultHandler::resetErrors(void)" > (?reseterr...@defaulthandler@xercesc_3_1@@UAEXXZ) > 1>parser.obj : error LNK2001: unresolved external symbol "public: > virtual void __thiscall xercesc_3_1::DefaultHandler::comment(unsigned > short const * const,unsigned long)" > (?comm...@defaulthandler@xercesc_3_1@@uaexq...@z) > 1>parser.obj : error LNK2001: unresolved external symbol "public: > virtual void __thiscall xercesc_3_1::DefaultHandler::endCDATA(void)" > (?endcd...@defaulthandler@xercesc_3_1@@UAEXXZ) > 1>parser.obj : error LNK2001: unresolved external symbol "public: > virtual void __thiscall xercesc_3_1::DefaultHandler::endDTD(void)" > (?end...@defaulthandler@xercesc_3_1@@UAEXXZ) > 1>parser.obj : error LNK2001: unresolved external symbol "public: > virtual void __thiscall > xercesc_3_1::DefaultHandler::endEntity(unsigned short const * const)" > (?endent...@defaulthandler@xercesc_3_1@@uaex...@z) > 1>parser.obj : error LNK2001: unresolved external symbol "public: > virtual void __thiscall xercesc_3_1::DefaultHandler::startCDATA(void)" > (?startcd...@defaulthandler@xercesc_3_1@@UAEXXZ) > 1>parser.obj : error LNK2001: unresolved external symbol "public: > virtual void __thiscall xercesc_3_1::DefaultHandler::startDTD(unsigned > short const * const,unsigned short const * const,unsigned short const > * const)" (?start...@defaulthandler@xercesc_3_1@@uaexqb...@z) > 1>parser.obj : error LNK2001: unresolved external symbol "public: > virtual void __thiscall > xercesc_3_1::DefaultHandler::startEntity(unsigned short const * > const)" (?startent...@defaulthandler@xercesc_3_1@@uaex...@z) > 1>parser.obj : error LNK2001: unresolved external symbol "public: > virtual void __thiscall > xercesc_3_1::DefaultHandler::elementDecl(unsigned short const * > const,unsigned short const * const)" > (?elementd...@defaulthandler@xercesc_3_1@@uaexq...@z) > 1>parser.obj : error LNK2001: unresolved external symbol "public: > virtual void __thiscall > xercesc_3_1::DefaultHandler::attributeDecl(unsigned short const * > const,unsigned short const * const,unsigned short const * > const,unsigned short const * const,unsigned short const * const)" > (?attributed...@defaulthandler@xercesc_3_1@@uaexqbg0...@z) > 1>parser.obj : error LNK2001: unresolved external symbol "public: > virtual void __thiscall > xercesc_3_1::DefaultHandler::internalEntityDecl(unsigned short const * > const,unsigned short const * const)" > (?internalentityd...@defaulthandler@xercesc_3_1@@uaexq...@z) > 1>parser.obj : error LNK2001: unresolved external symbol "public: > virtual void __thiscall > xercesc_3_1::DefaultHandler::externalEntityDecl(unsigned short const * > const,unsigned short const * const,unsigned short const * const)" > (?externalentityd...@defaulthandler@xercesc_3_1@@uaexqb...@z) > 1>parser.obj : error LNK2019: unresolved external symbol > "__declspec(dllimport) public: virtual __thiscall > xercesc_3_1::DefaultHandler::~DefaultHandler(void)" > (__imp_??1defaulthand...@xercesc_3_1@@u...@xz) referenced in function > "public: virtual __thiscall parser::SimpleParser::~SimpleParser(void)" > (??1simplepar...@parser@@u...@xz) > 1>lib\Debug\g5enum.exe : fatal error LNK1120: 31 unresolved externals > > ### snap ### > > In my project settings I've set the following properties (Debug > configuration): > C/C++ -> Language -> Treat WChar_t As Built in Type: No(/Zc:wchar_t-) > C/C++ -> Additional Include Directories: <path to xerces header files> > Linker -> Additional Library Dependencies: <path to xerces-lib directory> > Linker -> Input -> Additional Dependencies: xerces-c3D.lib > > For security reasons I've copied the bin/*.dll files to > C:\Windows\system and C:\Windows\system32... > > I've no Idea what I can do... > > I hope someone can help me. > > so long > > jd >