import problem

Jesse Phillips jessekphillips+D at gmail.com
Thu May 19 12:05:07 PDT 2011


Jesse Phillips Wrote:

> Lloyd Dupont Wrote:
> 
> > so I copied the Entice generated UI code in Visual D, and tried to compile.
> > I got 1 error:
> > Error    1    Error: module all is in file 'dfl\all.d' which cannot be read 
> > C:\Dev\DTest\DTest1\myform.d    7
> > 
> > On
> > import dfl.all;
> > 
> > For info I do have dfl.all in
> > C:\D\dmd2\windows\import\dfl 
> > 
> 
> dmd myform.d -IC:\D\dmd2\windows\import\dfl 

Forgot DFL requires some more switches, maybe using dfl.exe to compile:
http://wiki.dprogramming.com/Dfl/Tutorial

The simplest way to compile with DFL is to use the dfl.exe command. Simply open a command prompt, cd to the directory containing the source files you wish to compile, and type dfl sourcefile.d you can add -gui switch and any other source files to include in the compilation

Finally, the least appealing choice is to call the compiler directly. You must follow strict rules when doing this or things may behave erratically and even crash. The details can be found on the old setup instructions page; look for the "use DMD directly" section.


More information about the Digitalmars-d-learn mailing list