Phobos and Tango deep dependancies

Gilles G. schaouette at free.fr
Tue Oct 2 07:46:07 PDT 2007


Jason House Wrote:
> Are you linking against stuff such as libphobos?  Is it possible to only compile in the exact .d files you need to use?  I think dsss tries to do that by default?

Here is an example (file main.d):
  import std.stdio;
  
  int main()
  {
      writefln("Hello, world!");
      return 0;
  }

I compile with DMD like this:
>> dmd -oftest main.d

This will create the executable "test.exe" linked against libphobos because I use a fonction from the standard lib.

Running "depends.exe" on the executable "test.exe" shows more than a hundred DLL dependancies.

I tried DSSS with this dsss.conf:
[main.d]
target=test

But the result is the same...



More information about the Digitalmars-d mailing list