Posted: Thu May 15, 2008 4:41 pm Post subject: How to get Scite4d to keep the executables?

Having installed d and Scite4d I found I can get a "hello" program to compile and run from under Scite, but the executable is nowhere to be seen.

I tried all the compile options under Scite4d, to no avail. I looked at the source of ybud.d to see what it was doing, tried to modify it to print out the command it assembles, but could not get it to compile.

Ok, if I do dmd -run hello.d it runs but it doesn't write an executable.

However ... that doesn't change the problem I described.

Sci4d simply will not cause an executable to appear when I use F7 or <CTRL> F7. I mentioned that bit about <CTRL> F5 only to make it clear that the dmd compiler is installed and working (and accessible from under Sci4d ) and that the program doesn't contain errors that cause the compilation to abort.

So my original question remains: why doesn't Sci4d produce an executable? Any ideas?

It turns out I have to put a batchfile, makefile, or dsss file that takes care of compilation in the same directory as the source file (that isn't documented anywhere).

The batchfile has to be called: build.bat (nothing else will work). In fact the Sci4d directory contains a sub-directory called "examples" which shows examples of a valid batch build file ("build.bat"), a makefile ("Makefile"), and a dsss configuration file ("dsss.conf"). The undocumented part of it all is that you've got to have a file named like that in the same directory as the source file you're editing.

What Sci4d does is call that batchfile (or use that makefile or dsss file). Simple once you know it, but something like this really should be documented.