Compiling multiple source files --- each file separately, or all together?
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Mon Dec 29 22:39:57 UTC 2025
On 30/12/2025 3:52 AM, David Given wrote:
> My ldmd2 doesn't have -extI yet. Is there an alternative? And I'm
> guessing there's no way to pass in a .d file on the command line but
> tell the compiler to use it for imports only?
-extI is only required on Windows.
Use -I=path --dllimport=all instead of -extI=path --dllimport=externalOnly
And it only applies when that import is for a shared library.
Note: while dmd has these switches now, it does not ship druntime/phobos
as shared libraries so you won't be using shared libraries with it yet.
More information about the Digitalmars-d
mailing list