www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Import issues

reply Jeremy <Jeremy_member pathlink.com> writes:
I just downloaded DWT, and I'm trying to compile some of the test examples.
About this error:

hello2.d(4): module all cannot read file 'dwt\all.d'

I have to always specify -Ic:\dmd\import as an argument to get past this when I
use 'build'. I've tried changing my sc.ini file to automatically add this
argument, but it simply doesn't seem to work... Does build even look at sc.ini?
What should it look like?

Does 'import dwt\all.d' just parse all of the function names/parameter
types/symbols from all.d and link to a given library -- or does it compile it
all.d and ignore the .lib?

Thanks!

Jeremy
Mar 05 2006
parent reply Derek Parnell <derek psych.ward> writes:
On Mon, 6 Mar 2006 01:47:38 +0000 (UTC), Jeremy wrote:

 I just downloaded DWT, and I'm trying to compile some of the test examples.
 About this error:
 
 hello2.d(4): module all cannot read file 'dwt\all.d'
 
 I have to always specify -Ic:\dmd\import as an argument to get past this when I
 use 'build'. I've tried changing my sc.ini file to automatically add this
 argument, but it simply doesn't seem to work... Does build even look at sc.ini?

It sure does.
 What should it look like?

DFLAGS="-I% P%\..\src\phobos" -Ic:\dmd\import Note that subsequent installs of DMD will wipe out any changes you have made to the sc.ini file. Or if you like, you can create a file called "build.cfg" and have this line in it ... CMDLINE=-Ic:\dmd\import Build looks for this file in the same folder as the Build.exe resides in *and* in the same folder that DMD.exe has been installed in. You can have both or either (or none). -- Derek (skype: derek.j.parnell) Melbourne, Australia "Down with mediocracy!" 6/03/2006 2:51:59 PM
Mar 05 2006
parent Jeremy <Jeremy_member pathlink.com> writes:
In article <1q45okfgyozro$.41n2z1lq3fx5$.dlg 40tude.net>, Derek Parnell says...
On Mon, 6 Mar 2006 01:47:38 +0000 (UTC), Jeremy wrote:

 I just downloaded DWT, and I'm trying to compile some of the test examples.
 About this error:
 
 hello2.d(4): module all cannot read file 'dwt\all.d'
 
 I have to always specify -Ic:\dmd\import as an argument to get past this when I
 use 'build'. I've tried changing my sc.ini file to automatically add this
 argument, but it simply doesn't seem to work... Does build even look at sc.ini?

It sure does.
 What should it look like?

DFLAGS="-I% P%\..\src\phobos" -Ic:\dmd\import

Yay! That worked :)
Note that subsequent installs of DMD will wipe out any changes you have
made to the sc.ini file.

Or if you like, you can create a file called "build.cfg" and have this line
in it ...

  CMDLINE=-Ic:\dmd\import

Build looks for this file in the same folder as the Build.exe resides in
*and* in the same folder that DMD.exe has been installed in. You can have
both or either (or none).

-- 
Derek
(skype: derek.j.parnell)
Melbourne, Australia
"Down with mediocracy!"
6/03/2006 2:51:59 PM

Thank you! :) Jeremy
Mar 06 2006