Hi, I'm having trouble getting the my sample application to build and link with xerces-c 3.0.1. I'm running on Windows and using Visual Studio 2008. I was able to build the xerces library just fine (i.e. the "xerces-c-3.0.1\projects\Win32\VC9\xerces-all\XercesLib\XercesLib.vcproj" project). However, when I try to build a simple executable I get:
1>XercesLib.lib(Win32TransService.obj) : error LNK2019: unresolved external symbol __imp__RegQueryValueExA@24 referenced in function "bool __cdecl xercesc_3_1::isAlias(struct HKEY__ * const,char * const,unsigned int)" (?isAlias@xercesc_3_1@@YA_NQAUHKEY__@@QADI@Z) 1>XercesLib.lib(Win32TransService.obj) : error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function "public: __thiscall xercesc_3_1::Win32TransService::Win32TransService(class xercesc_3_1::MemoryManager *)" (??0Win32TransService@xercesc_3_1@@QAE@PAVMemoryManager@1@@Z) 1>XercesLib.lib(Win32TransService.obj) : error LNK2019: unresolved external symbol __imp__RegEnumKeyExA@32 referenced in function "public: __thiscall xercesc_3_1::Win32TransService::Win32TransService(class xercesc_3_1::MemoryManager *)" (??0Win32TransService@xercesc_3_1@@QAE@PAVMemoryManager@1@@Z) 1>XercesLib.lib(Win32TransService.obj) : error LNK2019: unresolved external symbol __imp__RegOpenKeyExA@20 referenced in function "public: __thiscall xercesc_3_1::Win32TransService::Win32TransService(class xercesc_3_1::MemoryManager *)" (??0Win32TransService@xercesc_3_1@@QAE@PAVMemoryManager@1@@Z) The xerces library was built as a static lib (in visual studio "Configuration Properties > General > Configuration Type = Static Library (.lib)") and the runtime library is "Multi-threaded Debug (/MTd)". My application has the following settings in visual studio: Configuration Properties > C/C++ > Additional Include directories = ..\..\xerces-c-3.0.1\src Configuration Properties > C/C++ > Preprocessor Definitions = XERCES_STATIC_LIBRARY Configuration Properties > C/C++ > Code Generation > Runtime library = Multi-threaded Debug (/MTd) Configuration Properties > C/C++ > Advanced > Calling convention = __cdecl (/Gd) Configuration Properties > Linker > Additional Library Directories = ..\..\xerces-c-3.0.1\Build\Win32\VC9\Debug\ Configuration Properties > Linker > Input > Additional Dependencies = XercesLib.lib --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
