www.digitalmars.com         C & C++   DMDScript  

D - Scons with DMD

reply Carlos Peņa <Carlos_member pathlink.com> writes:
Hi

I'm trying to build the dfbth library from source but haven't been able to
compile any source file.

I've installed Python and Scons with the patch provieded by Andi in it's page
but every time I run scons from the command line I see the correct commands are
been issued but not executed. Something like the following:

dmd -o test.obj test.d
"dmd" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.

but one for each source file in the dfbth distribution.
Feb 09 2004
parent reply Andy Friesen <andy ikagames.com> writes:
Carlos Peņa wrote:
 Hi
 
 I'm trying to build the dfbth library from source but haven't been able to
 compile any source file.
 
 I've installed Python and Scons with the patch provieded by Andi in it's page
 but every time I run scons from the command line I see the correct commands are
 been issued but not executed. Something like the following:
 
 dmd -o test.obj test.d
 "dmd" no se reconoce como un comando interno o externo,
 programa o archivo por lotes ejecutable.
 
 but one for each source file in the dfbth distribution.

How strange. Is DMD in your current path? -- andy
Feb 09 2004
parent reply Carlos Peņa <Carlos_member pathlink.com> writes:
In article <c085h7$2cj0$1 digitaldaemon.com>, Andy Friesen says...

How strange.  Is DMD in your current path?

  -- andy

Yes, I can run it from the Run dialog box. I'm using win2k and win98se.
Feb 10 2004
parent Andy Friesen <andy ikagames.com> writes:
Carlos Peņa wrote:

 In article <c085h7$2cj0$1 digitaldaemon.com>, Andy Friesen says...
 
 
How strange.  Is DMD in your current path?

 -- andy

Yes, I can run it from the Run dialog box. I'm using win2k and win98se.

OH. You need to pass os.environ when you create your environment: import os env = Environment(ENV=os.environ) SCons tries not to rely on the system configuration to keep things portable, but I don't see any other way to deal with DMD, since the windows file system has no organization whatsoever. -- andy
Feb 11 2004