From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-08-24 00:58:54
David Abrahams wrote:
>> for quite some time, the <link-runtime>static option was broken on gcc.
>> Some investigation revelated that this options is not completely separate
>> from <link>static. If an application uses DLLs in some way, it should
>> link to the shared runtime (specifically, libc).
>> There's a email discussion between me and a libc maintainer that I base
>> this view on:
>> Based on that, I've modified gcc.jam so that it issues a reasonable error
>> message if the user tries to use <link-runtime>static with DLLs.
> Does this apply to gcc on all platforms, or just ELF/Linux?
It's very hard to say. Even the definite conclusion about ELF/Linux took
several emails, and I don't know whom to ask about mingw or cygwin. I think
we'll have to wait until somebody complains.
> I can't tell from the thread whether this is the issue, but: although
> there are similar guidelines under Windows, if you are careful about
> resource management it's possible to use the static runtime with
> shared libs.
Yes, I known it's possible at least under vc. But who knows about cygwin?
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk