linker wrapper

Andrew Wiley debio264 at gmail.com
Sat Nov 13 20:56:35 PST 2010


On Sat, Nov 13, 2010 at 9:14 PM, bearophile <bearophileHUGS at lycos.com>wrote:
>
>
> If you don't even see the usefulness of more readable linker errors then...
> why are where here? Aren't we trying to improve older languages?


I said that improved error messages would be helpful.
I may have misinterpreted you when you said:

>My preferred (partial) solution to that problem is to let DMD look by
itself for the modules it needs to >compile a program, unless a compiler
switch asks otherwise and restores the simpler basic behaviour.

I interpreted this as the compiler adding modules that were unspecified on
the command line when calling the linker. If you meant that the compiler
should search for additional required modules for more useful error
messages, I agree with that sentiment.
As written, it seems like you want the compiler to try to autodetect which
object files need to be linked together and add those objects to the
arguments to the linker, which I believe is a disservice because it takes a
simple "pure" input/output model of compilation and makes it perform actions
the programmer didn't necessarily intend or comprehend.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20101113/9aeb7f46/attachment.html>


More information about the Digitalmars-d mailing list