dmd and visual D

Rainer Schuetze r.sagitario at gmx.de
Sat Sep 18 08:36:32 PDT 2010


I guess C:\Developer\DLang\dmd contains the D1 compiler. The WindowsApp 
example is for D2. You should change the dmd path in 
Tools->Options->Projects->Visual D, probably to C:\Developer\DLang\dmd2.

If this is the problem, the changes to sc.ini were unnecessary and 
should be undone.

Vince wrote:
> I have changed the dmd\windows\bin\sc.ini as suggested(and it was
> weird because I had to use my text editor with administrator
> rights) but I still have one error :
> 
> Build Log
> Building Debug\WindowsApp1.exe
> Command Line
> set PATH=C:\Developer\DLang\windows\bin;C:\Program Files (x86)
> \Microsoft SDKs\Windows\v7.0A\\bin;%PATH%
> dmd -g -debug -X -Xf"Debug\WindowsApp1.json" -
> of"Debug\WindowsApp1.exe_cv" -deps="Debug\WindowsApp1.dep" -
> map "Debug\WindowsApp1.map" -L/NOMAP ole32.lib kernel32.lib
> user32.lib comctl32.lib comdlg32.lib -L/SUBSYSTEM:WINDOWS winmain.d
> if errorlevel 1 goto reportError
> if not exist "Debug\WindowsApp1.exe_cv"
> (echo "Debug\WindowsApp1.exe_cv" not created! && goto reportError)
> echo Converting debug information...
> "C:\Program Files (x86)\VisualD\cv2pdb\cv2pdb.exe" -
> D2 "Debug\WindowsApp1.exe_cv" "Debug\WindowsApp1.exe"
> if errorlevel 1 goto reportError
> if not exist "Debug\WindowsApp1.exe" (echo "Debug\WindowsApp1.exe"
> not created! && goto reportError)
> 
> goto noError
> 
> :reportError
> echo Building Debug\WindowsApp1.exe failed!
> 
> :noError
> Output
> winmain.d(3): Error: module runtime is in file 'core\runtime.d'
> which cannot be read
> import path[0] =
> C:\Developer\DLang\dmd\windows\bin\..\..\src\phobos
> import path[1] =
> C:\Developer\DLang\dmd\windows\bin\..\..\src\druntime\import
> Building Debug\WindowsApp1.exe failed!
> 
> 
> 
> Building Debug\WindowsApp1.exe failed!
> Details saved as "file://C:\Users\Vincent\Documents\Visual Studio
> 2010\Projects\WindowsApp1\Debug\buildlog.html"
> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
> ==========
> 
> 
> By the way, why does I had to modify the sc.ini of dmd folder? I
> thought VisualD was using D2 compiler ie the dmd.exe found in dmd2
> folder.


More information about the Digitalmars-d mailing list