You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by Don McClimans <dm...@intielectronics.com> on 2005/07/08 23:58:23 UTC

How to DelayLoad xerces dll under Windows

I would like to DelayLoad the xerces dll under windows. However, when I link with this option, I get the error message:

LINK : fatal error LNK1194: cannot delay-load xerces-c_2_6D.dll due to import of data symbol "__declspec(dllimport) public: static unsigned short const * const xercesc_2_6::XMLUni::fgSAX2CoreNameSpacePrefixes" (__imp_?fgSAX2CoreNameSpacePrefixes@XML
Uni@xercesc_2_6@@2QBGB); relink without /DELAYLOAD:xerces-c_2_6D.dll

Can anyone tell me what this message means? Or, even simpler (for me): how do I delayload under win32?

Xerces version 2.6, using MSVC++ 6.0 SP5.

Thanks,

Don




Re: How to DelayLoad xerces dll under Windows

Posted by Alberto Massari <am...@datadirect.com>.
Hi Don,
delay loading a DLL requires that the DLL doesn't export static 
symbols, and Xerces does that in a lot of cases; so it's not 
possible, unless you avoid using any of these static symbols...

Hope this helps,
Alberto

At 17.58 08/07/2005 -0400, Don McClimans wrote:
>I would like to DelayLoad the xerces dll under windows. However, 
>when I link with this option, I get the error message:
>
>LINK : fatal error LNK1194: cannot delay-load xerces-c_2_6D.dll due 
>to import of data symbol "__declspec(dllimport) public: static 
>unsigned short const * const 
>xercesc_2_6::XMLUni::fgSAX2CoreNameSpacePrefixes" 
>(__imp_?fgSAX2CoreNameSpacePrefixes@XML
>Uni@xercesc_2_6@@2QBGB); relink without /DELAYLOAD:xerces-c_2_6D.dll
>
>Can anyone tell me what this message means? Or, even simpler (for 
>me): how do I delayload under win32?
>
>Xerces version 2.6, using MSVC++ 6.0 SP5.
>
>Thanks,
>
>Don
>
>