linker wrapper

bearophile bearophileHUGS at lycos.com
Thu Nov 11 05:31:24 PST 2010


Denis Koroskin:

> Given that dmd calls a linker internally, it could also retrieve linker  
> errors (if any present), translate and then show them, with a list of  
> suggestions to fix the problem if possible. Here are an example:
> 
> module test1;
> void foo() {}
> 
> module test2;
> import test1;
> void main() { foo(); }
> 
> #dmd test2.d
> 
> Desired output: Error: No implementation found for method void foo()  
> defined in module test1. Try linking with test1.d
> Actual output: Error 42: Symbol Undefined _D5test13fooFZv
> 
> [1] http://d.puremagic.com/issues/show_bug.cgi?id=2238

I have just suggested a similar error message in D.learn newsgroup. Of course the compiler can also do the damm thing by itself and find the module it needs (this feature may be disable with a compiler switch, for larger compilations, do-it-yourself-people, etc).

Bye,
bearophile


More information about the Digitalmars-d mailing list