dmd -nodefaultlibs?

Adam D. Ruppe destructionator at gmail.com
Wed May 22 00:49:22 UTC 2019


On Tuesday, 21 May 2019 at 21:48:22 UTC, Jonathan Marler wrote:
> Is there a way to prevent dmd from adding any default libraries 
> to its linker command?

dmd -defaultlib= yourfile.d


Note it is = then nothing; you set it to a null library. Then it 
will not link any D library.

that takes the D library out, but it will still try to link some 
C libs. I believe the only way to exclude them too is to compile 
and link separately.


read more here:
http://dpldocs.info/this-week-in-d/Blog.Posted_2019_02_25.html#no-runtime-d



More information about the Digitalmars-d-learn mailing list