Because you're overwriting the .lib import library with a static library, and then foo() gets statically compiled into driver.d.
- What to do about implicit linking with D DLLs that import ... Andrej Mitrovic
- Re: What to do about implicit linking with D DLLs tha... Andrej Mitrovic
- Re: What to do about implicit linking with D DLLs... Jimmy Cao
- Re: What to do about implicit linking with D ... Andrej Mitrovic
