File by file or all files at the same time.

Denis Koroskin 2korden at gmail.com
Wed Aug 13 04:24:08 PDT 2008


On Tue, 12 Aug 2008 23:49:10 +0400, lurker <lurker1024 at mailinator.com>  
wrote:

> Hi.
>
> I asked this on d.D.learn but didn't get the answer I was looking for.  
> Let me try here again.
>
> I remember there where some issues building all files at once with DMD  
> and wanted to know if it's still the case and if GDC has the same  
> problem.
>
> I need to build DLLs, Lib files and some EXEs. Should I compile one file  
> at a time and link all .OBJs files or pass all files to the compiler at  
> once?
>
> I'm on Windows using both, DMD and GDC (I'm not allowed to use DSSS or  
> bud).
>
> Thanks.
>

I have never had any problems with both approaches so far. Choose whatever  
is better for you.
For example, if you use Descent, you invoke a custom script to build your  
application, so it is transparent to the IDE what method do you use for  
building. IIRC, both bud and dsss/rebuild have options to change their  
behaviour (something like oneatatime=false). Alternatively, you can create  
you own build script (scons or makefile-based, for example).



More information about the Digitalmars-d mailing list