Re: Win32TransService.obj LNK2019 error

2011-03-05 Thread Boris Kolpackov
Hi Mayra,

Please post usage questions to the c-us...@xerces.apache.org mailing list
instead of c-dev.

Mayra mlchav...@gmail.com writes:

 1XercesLib.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)

You are linking to a static version of Xerces-C++ library. All the unresolved
symbols are Registry functions. You need to link your application to
Advapi32.lib.

Boris

-- 
Boris Kolpackov, Code Synthesishttp://codesynthesis.com/~boris/blog
Compiler-based ORM system for C++  http://codesynthesis.com/products/odb
Open-source XML data binding for C++   http://codesynthesis.com/products/xsd
XML data binding for embedded systems  http://codesynthesis.com/products/xsde

-
To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org



Win32TransService.obj LNK2019 error

2011-03-02 Thread Mayra
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:

1XercesLib.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)
1XercesLib.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)
1XercesLib.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)
1XercesLib.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: c-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org