Dear Alberto,

Thx. again! You are so grateful with your time.

I've done what you've said.

But even if i change my runtime library setting as you said, i still get the
Xerces unresolved external.

>Xerces-c_static_2D.lib(Win32TransService.obj) : error LNK2001: 
>unresolved external symbol ___mb_cur_max .\Debug/dmpmain.exe : 

I checked double time if i really changed to MTd and MT correctly. But still
the same error with both runtime library settings.

By the way. With the MTd setting i now get even more unresolved externals.
But it seems they don't come from Xerces and so you can't say anything for
them. My project uses also the static library of wxWidgets and now i get
additional wxStringData::Free unresolved external errors. They don't come up
with the MDd setting.

Any more to do/check/read/WhatEverYouSayIllDo?

TIA once again
Joerg Toellner


-----Ursprüngliche Nachricht-----
Von: Alberto Massari [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 14. September 2005 14:08
An: c-dev@xerces.apache.org
Betreff: Re: AW: Linking with static library - Linking errors and unresolved
external

Oh, yes; you also need to switch to the static C runtime library:
- in the project property dialog, click on the C/C++ folder, then on "Code
Generation"
- in the Runtime Library field, select
"Multi-threaded Debug (/MTd)" for the Debug build, and "Multi-threaded
(/MT)" for the Release build.

Alberto

At 12.51 14/09/2005 +0200, Joerg Toellner wrote:
>Dear Alberto,
>
>Thank you very much. It worked so far, b I did this before, but somehow 
>i've read in the mailinglist-archive that i have to add the Macro 
>XERCES_STATIC_LIBRARY (instead of the XML_LIBRARY).
>
>Now the warnings are all gone. But i still have the unresolved external 
>error like this:
>
>Linking...
>Xerces-c_static_2D.lib(Win32TransService.obj) : error LNK2001: 
>unresolved external symbol ___mb_cur_max .\Debug/dmpmain.exe : fatal 
>error LNK1120: 1 unresolved externals
>
>With the dll-variant this error is not occuring.
>
>Any hint for this last problem for me too? I will be very glad if you 
>can afford one more helping hand.
>
>TIA again
>Joerg
>
>-----Ursprüngliche Nachricht-----
>Von: Alberto Massari [mailto:[EMAIL PROTECTED]
>Gesendet: Mittwoch, 14. September 2005 11:43
>An: c-dev@xerces.apache.org
>Betreff: Re: Linking with static library - Linking errors and 
>unresolved external
>
>Hi Joerg,
>
>At 10.44 14/09/2005 +0200, Joerg Toellner wrote:
> >[..]
> >I'm not very good in playing with compiler options. So i'm now stuck 
> >and helpless. Would please anybody enlighten me a little bit so i'm 
> >able to link the xerces-libraries statically in my app? What i have 
> >exactly to do (step by step for lamers like me if possible) to get it 
> >to
>work?
>
>Just do this:
>- right click on the project entry in the "Solution Explorer" and 
>select "Properties"
>- click on the C++ folder on the left, then on the "Preprocessor" entry
>- click on the "Preprocessor Definitions", then on the [...] button
>- add the macro XML_LIBRARY to the list
>- click OK to close the macro definition dialog
>- repeat the steps also for the Release build configuration
>- click OK to close the properties dialog
>
>Alberto
>
>P.S. For the ones who want to do the same with the unreleased Xerces 
>3.0 code base, the macro has been changed into XERCES_STATIC_LIBRARY
>
>
> >TIA veeeery much for any hint
> >Joerg Toellner
> >
> >Following my warnings and error messages:
> >
> >---------------SNIP------------------------
> >Linking...
> >dmpmainFrm.obj : warning LNK4049: locally defined symbol 
> >[EMAIL PROTECTED]@xercesc_2_7@@[EMAIL PROTECTED]@A
> >(public: static class xercesc_2_7::MemoryManager *
> >xercesc_2_7::XMLPlatformUtils::fgMemoryManager) imported
> >
> >xmldom.obj : warning LNK4049: locally defined symbol 
> >[EMAIL PROTECTED]@xercesc_2_7@@[EMAIL PROTECTED]@A
> >(public: static class xercesc_2_7::MemoryManager *
> >xercesc_2_7::XMLPlatformUtils::fgMemoryManager) imported
> >
> >dmpmainFrm.obj : warning LNK4217: locally defined symbol 
> >[EMAIL PROTECTED]@xercesc_2_7@@[EMAIL PROTECTED] (public: static unsigned 
> >short
> >* __cdecl xercesc_2_7::XMLString::transcode(char const * const)) 
> >imported
>in
> >function "public: __thiscall XERCES_C2X::XERCES_C2X(char const * const)"
> >(??0XERCES_C2X@@[EMAIL PROTECTED]@Z)
> >
> >xmldom.obj : warning LNK4049: locally defined symbol 
> >[EMAIL PROTECTED]@xercesc_2_7@@[EMAIL PROTECTED] (public: static unsigned 
> >short
> >* __cdecl xercesc_2_7::XMLString::transcode(char const * const)) 
> >imported
> >
> >dmpmainFrm.obj : warning LNK4217: locally defined symbol 
> >[EMAIL PROTECTED]@xercesc_2_7@@[EMAIL PROTECTED] (public: static void 
> >__cdecl xercesc_2_7::XMLString::release(unsigned short * *)) imported 
> >in function
> >"public: __thiscall XERCES_C2X::~XERCES_C2X(void)" 
> >(??1XERCES_C2X@@[EMAIL PROTECTED])
> >
> >xmldom.obj : warning LNK4049: locally defined symbol 
> >[EMAIL PROTECTED]@xercesc_2_7@@[EMAIL PROTECTED] (public: static void 
> >__cdecl xercesc_2_7::XMLString::release(unsigned short * *)) imported
> >
> >xmldom.obj : warning LNK4217: locally defined symbol 
> >[EMAIL PROTECTED]@xercesc_2_7@@SAPAVDOM
> >Implem
>e
> >[EMAIL PROTECTED]@[EMAIL PROTECTED] (public: static class 
> >xercesc_2_7::DOMImplementation 
> >* __cdecl 
> >xercesc_2_7::DOMImplementationRegistry::getDOMImplementation(unsigned 
> >short const *)) imported in function "class 
> >xercesc_2_7::DOMImplementation * __cdecl dom_Init(void)" 
> >(?dom_Init@@[EMAIL PROTECTED]@@XZ)
> >
> >xmldom.obj : warning LNK4217: locally defined symbol 
> >[EMAIL PROTECTED]@xercesc_2_7@@[EMAIL PROTECTED]@QA
> >VMemor
>y
> >[EMAIL PROTECTED]@[EMAIL PROTECTED] (public: static void __cdecl 
> >xercesc_2_7::XMLPlatformUtils::Initialize(char const * const,char 
> >const * const,class xercesc_2_7::PanicHandler * const,class 
> >xercesc_2_7::MemoryManager * const,bool)) imported in function "class 
> >xercesc_2_7::DOMImplementation * __cdecl dom_Init(void)"
> >(?dom_Init@@[EMAIL PROTECTED]@@XZ)
> >
> >xmldom.obj : warning LNK4049: locally defined symbol 
> >[EMAIL PROTECTED]@xercesc_2_7@@2QBDB (public: static 
> >char
>const
> >* const xercesc_2_7::XMLUni::fgXercescDefaultLocale) imported
> >
> >xmldom.obj : warning LNK4217: locally defined symbol 
> >[EMAIL PROTECTED]@xercesc_2_7@@SAXXZ (public: static void 
> >__cdecl
> >xercesc_2_7::XMLPlatformUtils::Terminate(void)) imported in function 
> >"void __cdecl dom_DeInit(void)" (?dom_DeInit@@YAXXZ)
> >
> >xmldom.obj : warning LNK4217: locally defined symbol 
> >[EMAIL PROTECTED]@xercesc_2_7@@[EMAIL PROTECTED] (public: static char * 
> >__cdecl xercesc_2_7::XMLString::transcode(unsigned short const * 
> >const)) imported
>in
> >function $L79627
> >
> >xmldom.obj : warning LNK4217: locally defined symbol 
> >[EMAIL PROTECTED]@xercesc_2_7@@[EMAIL PROTECTED] (public: static void 
> >__cdecl xercesc_2_7::XMLString::release(char * *)) imported in 
> >function $L79627
> >
> >xmldom.obj : warning LNK4217: locally defined symbol 
> >[EMAIL PROTECTED]@@[EMAIL PROTECTED] (public: static void __cdecl 
> >xercesc_2_7::XMemory::operator delete(void *)) imported in function 
> >$L79584
> >
> >xmldom.obj : warning LNK4217: locally defined symbol 
> >[EMAIL PROTECTED]@@[EMAIL PROTECTED]@1@@Z
(public:
> >__thiscall 
> >xercesc_2_7::LocalFileFormatTarget::LocalFileFormatTarget(char
> >const * const,class xercesc_2_7::MemoryManager * const)) imported in 
> >function "void __cdecl dom_WriteDoc(class 
> >xercesc_2_7::DOMImplementation *,class xercesc_2_7::DOMDocument *,char
*)"
> >(?dom_WriteDoc@@[EMAIL PROTECTED]@@[EMAIL PROTECTED]
> >@[EMAIL PROTECTED]
>)
> >
> >xmldom.obj : warning LNK4217: locally defined symbol 
> >[EMAIL PROTECTED]@@[EMAIL PROTECTED] (public: static void * __cdecl 
> >xercesc_2_7::XMemory::operator new(unsigned int)) imported in 
> >function
>"void
> >__cdecl dom_WriteDoc(class xercesc_2_7::DOMImplementation *,class 
> >xercesc_2_7::DOMDocument *,char *)"
> >(?dom_WriteDoc@@[EMAIL PROTECTED]@@[EMAIL PROTECTED]
> >@[EMAIL PROTECTED]
>)
> >
> >xmldom.obj : warning LNK4217: locally defined symbol 
> >[EMAIL PROTECTED]@@[EMAIL PROTECTED] (public: virtual 
> >__thiscall
> >xercesc_2_7::LocalFileFormatTarget::~LocalFileFormatTarget(void)) 
> >imported in function "public: virtual void * __thiscall 
> >xercesc_2_7::LocalFileFormatTarget::`scalar deleting 
> >destructor'(unsigned int)" 
> >([EMAIL PROTECTED]@@[EMAIL PROTECTED])
> >
> >xmldom.obj : warning LNK4217: locally defined symbol 
> >[EMAIL PROTECTED]@xercesc_2_7@@QBEPBGXZ (public: unsigned 
> >short
>const
> >* __thiscall xercesc_2_7::XMLException::getMessage(void)const ) 
> >imported in function $L79627
> >
> >Xerces-c_static_2D.lib(Win32TransService.obj) : error LNK2001: 
> >unresolved external symbol ___mb_cur_max .\Debug/dmpmain.exe : fatal 
> >error LNK1120: 1 unresolved externals
> >
> >Build log was saved at
> "<<file://d:\EigeneDaten\Visual>file://d:\EigeneDaten\Visual
>  >Studio>file://d:\EigeneDaten\Visual Studio
> >Projects\xml\dmpmain\Debug\BuildLog.htm"
> >dmpmain - 2 error(s), 17 warning(s)
> >---------------------- Done ----------------------
> >
> >     Rebuild All: 0 succeeded, 1 failed, 0 skipped
> >---------------SNIP------------------------
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to