linker wrapper

Walter Bright newshound2 at digitalmars.com
Sat Nov 13 23:09:26 PST 2010


Andrew Wiley wrote:
> 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.

I suspect that trying to guess what modules should be added to the linker list 
may cause far more confusion than enlightenment when it goes awry. Currently, a 
lot of people seem to regard what a linker does as magic. Making it more magical 
won't help.


More information about the Digitalmars-d mailing list