DIP 45 - approval discussion
Benjamin Thaut
code at benjamin-thaut.de
Sun Nov 10 03:44:19 PST 2013
Am 09.11.2013 20:26, schrieb Martin Nowak:
> On 11/09/2013 08:11 PM, code at benjamin-thaut.de wrote:
>>> 2. It requires the compiler to rewrite the .obj files, even ones
>>> that dmd did not create. I would consider this very surprising
>>> behavior. The user will be "WTF the object files in the lib are
>>> different from on my disk! D sux!" -lib is a simple-minded creature
>>> that currently does exactly what one would expect it to.
>> I can agree with that. The consensus in the newsgroup dicussion was
>> though, that this is better then adding another compiler switch for
>> disabeling dll-exported symbols, because that compiler switch would
>> need to be added manually, whereas the -lib solution would work
>> "magically". So the -lib solution whas thought to have better
>> usability.
> IIRC the main problem we're trying to solve is the following.
> If a static library contains object files with exported symbols those
> will
> be reexported from an exe/dll that links against the static library.
> Linking a static library into a dll is rare enough to justify a
> separate tool,
> but the exe case is problematic.
More information about the Digitalmars-d
mailing list