2010/1/29 Sanat Talmaki <[email protected]>

> Hello everybody,
> I am Sanat.
>
> I just downloaded the xerces source code and tried to build it. The build
> succeeded, but when I tried the sample of code in the programming section,
> I
> got the following errors. I am using Visual Studio 2008 and my OS is Vista
> 64 bit:
>
> 1>Linking...
> 1>main.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: static void __cdecl
> xercesc_3_0::XMLPlatformUtils::Terminate(void)"
> (__imp_?termin...@xmlplatformutils@xercesc_3_0@@SAXXZ) referenced in
> function __catch$_main$0
> 1>main.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: static void __cdecl
> xercesc_3_0::XMLPlatformUtils::Initialize(char const * const,char const *
> const,class xercesc_3_0::PanicHandler * const,class
> xercesc_3_0::MemoryManager * const)" (__imp_?initial...@xmlplatformutils
> @xercesc_3_0@@saxqbd0qavpanichand...@2@qavmemorymana...@2@@Z) referenced
> in
> function _main
> 1>main.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: static char const * const
> xercesc_3_0::XMLUni::fgXercescDefaultLocale"
> (__imp_?fgxercescdefaultloc...@xmluni@xercesc_3_0@@2QBDB)
> 1>C:\Users\Sanat\Desktop\CEM_Res\Jan
> 2010\xercesParser\Debug\xercesParser.exe : fatal error LNK1120: 3
> unresolved
> externals
> 1>Build log was saved at "file://c:\Users\Sanat\Desktop\CEM_Res\Jan
> 2010\xercesParser\Debug\BuildLog.htm"
> 1>xercesParser - 4 error(s), 0 warning(s)
> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
>
>
>
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> I feel I am not linking the library or something like that. But I added the
> entire xerces folder in my project properties under linker in visual
> studio.
>
This is not sufficient. You should also explicitly specify the library
you're linking with.
That's why I hate IDE for junior programmer.

>
> Any help would be fantastic. I am just starting out using xerces so please
> forgive me if my error is too dumbed out.
>
> Thanks,
>
> Sincerely,
>
> Sanat.
>



-- 
        牛坤
MSN:[email protected] <msn%[email protected]>

Reply via email to