On 2011-11-11 05:25, Steve Teale wrote:
I've just done my first thing in the morning thing again with Pan and
deleted one of your postings in the thread.
So lots of things can't be included in Phobos because it is one big
static library, right?
If you don't include some Phobos module in your app, the linker still
wants to pull in the unsatisfied externals for that module even though
they will not be used?
No, it won't. Tango uses external libraries, libz and libssl. You have
to explicitly link those libraries when you use those modules, but only
for those modules and no other modules.
I thought that a library was an archive, and that linkers just pulled in
the object files that were required by the app.
If that's not the case, then having D able to easily generate DLLs and
shared libraries would seem to be priority number one.
Clearly we don't have any philosophical objection to using external
libraries from Phobos - std.socket points out that you have to link with
the Windows sockets library. Or is that one of the old libraries that
Microsoft lets Walter use?
Steve
--
/Jacob Carlborg