Instructions for compilation from multiple source files

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Nov 10 04:21:50 PST 2014


Solomon E:

> I don't want to have to guess how to do it and experiment, as if
> it's all implementation defined and in flux to the degree that
> that's the only way to compile anything.

It's not in flux.
A simple way to compile more than one file is to put them in the 
same compilation unit (almost the same if you want to create a 
lib):

dmd a.d b.d

Otherwise you can also use ddmd and let it find the module 
dependencies by itself.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list