View previous topic :: View next topic |
Author |
Message |
jtrihas
Joined: 24 Apr 2010 Posts: 4
|
Posted: Sat Apr 24, 2010 1:46 pm Post subject: compilation fails in VS |
|
|
Hi, I've tried to compile a simple hello world program in VS9 and VS10 but in both cases the compilation failed returning:
Building Debug\testing.exe...
A subdirectory or file main.d already exists.
Error occurred while processing: main.d.
'f' is not recognized as an internal or external command,
operable program or batch file.
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
'xit' is not recognized as an internal or external command,
operable program or batch file.
'f' is not recognized as an internal or external command,
operable program or batch file.
apparently there is some problem with quotes in the compilation commands and as a result there is also a number of directories created in the file system like: "-ofDebug", "-map", "-g" which clearly are compiler options.
Cheers,
John |
|
Back to top |
|
|
sagitario
Joined: 03 Mar 2007 Posts: 292
|
Posted: Mon Apr 26, 2010 1:37 am Post subject: |
|
|
Hi,
I could not reproduce the exact problem that produces your output, but I've found a few issues with spaces in file names or directories. Please try the new version 0.3.6.
There's also a buildlog.html written now into the intermediate directory. If the problem remains, please post this file or attach it to a ticket.
Rainer |
|
Back to top |
|
|
jtrihas
Joined: 24 Apr 2010 Posts: 4
|
Posted: Mon Apr 26, 2010 2:41 pm Post subject: |
|
|
Thanks for the reply. I've updated to 0.3.6 but the error persists though I get a somewhat different output. Below are the content of the 'buildlog.html':
Build Log
Building Debug\testing.exe
Command Line
set PATH=C:\D\dmd2\windows\bin;C:\Program Files\Microsoft SDKs\Windows\v7.0\\bin;%PATH%
dmd -g -debug -of"Debug\testing.exe_cv" -deps="Debug\testing.dep" -map "Debug\testing.map" -L/NOMAP main.d
if errorlevel 1 goto xit
echo Converting debug information...
"C:\Program Files\VisualD\cv2pdb\cv2pdb.exe" -D2 "Debug\testing.exe_cv" "Debug\testing.exe"
:xit
if errorlevel 1 echo Building Debug\testing.exe failed!
Output
A subdirectory or file main.d already exists.
Error occurred while processing: main.d.
'f' is not recognized as an internal or external command,
operable program or batch file.
'cho' is not recognized as an internal or external command,
operable program or batch file.
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
'xit' is not recognized as an internal or external command,
operable program or batch file.
'f' is not recognized as an internal or external command,
operable program or batch file. |
|
Back to top |
|
|
sagitario
Joined: 03 Mar 2007 Posts: 292
|
Posted: Mon Apr 26, 2010 4:24 pm Post subject: |
|
|
It seems the command interpreter (what windows OS are you using?) does not like the unix-style line-feed end-of-line in the command file. It seems to skip every first character of the next line (e.g. making "dmd" to "md" and creating strange directories).
I'll change that to the carriage-return line-feed pairs, that windows is so fond of... |
|
Back to top |
|
|
sagitario
Joined: 03 Mar 2007 Posts: 292
|
|
Back to top |
|
|
jtrihas
Joined: 24 Apr 2010 Posts: 4
|
Posted: Mon Apr 26, 2010 5:00 pm Post subject: |
|
|
I've tested it in Win7 |
|
Back to top |
|
|
jtrihas
Joined: 24 Apr 2010 Posts: 4
|
Posted: Mon Apr 26, 2010 6:31 pm Post subject: |
|
|
Yes, it works with v0.3.7, I've tested in VS10 on Win7.
Cheers,
John |
|
Back to top |
|
|
|