Potential of a compiler that creates the executable at once

Walter Bright newshound2 at digitalmars.com
Sat Feb 12 23:56:45 UTC 2022


On 2/12/2022 2:00 AM, John Colvin wrote:
> I absolutely don’t want my executable defined by the order things happen to 
> appear on the linker command line. I don’t want that incidentally and I don’t 
> want to do it deliberately. The boat sailed on this long ago, I just want 
> everything to be in the executable please with errors on duplicates, unless it’s 
> dead code.

For better or worse, that's how linkers work.

Though you could write a tool to scan libraries for multiple definitions. Most 
of the work is already done for you in dmd's source code.


More information about the Digitalmars-d mailing list