On 11/18/2010 7:34 PM, spir wrote:
Hello,

I haven't found the way to have custom modules linked by dmd like stdlib ones. 
For instance, if program P imports modules M and std.string, I need to manually 
write a build command like:
        $ dmd -w -ofP P.d M.d
What have I missed?

Nothing. DMD automatically links with Phobos.lib when you compile your app. But it does not automatically compile and link any non-Phobos modules you import unless you explicitly pass them on the command line, as you have done. There's a tool that ships with dmd, called rdmd, that will do what you want if you use it in place of dmd.

Reply via email to