Thread overview | |||||
---|---|---|---|---|---|
|
March 06, 2006 Import issues | ||||
---|---|---|---|---|
| ||||
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 |
March 06, 2006 Re: Import issues | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jeremy | 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 |
March 06, 2006 Re: Import issues | ||||
---|---|---|---|---|
| ||||
Posted in reply to Derek Parnell | 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 |
Copyright © 1999-2021 by the D Language Foundation