Crashes with libQtUiTools.a if linked multiple times into the same process (with Bsymbolic-functions flag)

Patrick Spendrin ps_ml at gmx.de
Tue May 14 07:10:07 UTC 2013


Am 14.05.2013 00:28, schrieb Friedrich W. H. Kossebau:
> Hi Windows-Warriors,
> 
> tl;dr how to prevent symbol clashes with static libs multiple times in the 
> same process with the supported windows linkers?

The problem you seem to hit on Linux doesn't exist on windows, since
symbols from the static libraries are not public symbols (an equivalent
of hidden symbols is always switched on). This means that you can link a
static library into every binary you have, and still they cannot
interact there. This also marks the problem: you will not be able to
share memory between those binaries, which means that a memory region
allocated from the static library in A.dll cannot be freed by the static
library in B.dll. similar issues exist for other kinds of memory transfers.

regards,
Patrick


More information about the Kde-windows mailing list