FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

compilation fails in VS

 
Post new topic   Reply to topic     Forum Index -> Visual D
View previous topic :: View next topic  
Author Message
jtrihas



Joined: 24 Apr 2010
Posts: 4

PostPosted: Sat Apr 24, 2010 1:46 pm    Post subject: compilation fails in VS Reply with quote

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
View user's profile Send private message
sagitario



Joined: 03 Mar 2007
Posts: 292

PostPosted: Mon Apr 26, 2010 1:37 am    Post subject: Reply with quote

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
View user's profile Send private message
jtrihas



Joined: 24 Apr 2010
Posts: 4

PostPosted: Mon Apr 26, 2010 2:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
sagitario



Joined: 03 Mar 2007
Posts: 292

PostPosted: Mon Apr 26, 2010 4:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
sagitario



Joined: 03 Mar 2007
Posts: 292

PostPosted: Mon Apr 26, 2010 5:00 pm    Post subject: Reply with quote

I've uploaded a preliminary v0.3.7 to the download folder
http://www.dsource.org/projects/visuald/browser/downloads

Please try it again with this version.

Thanks,
Rainer
Back to top
View user's profile Send private message
jtrihas



Joined: 24 Apr 2010
Posts: 4

PostPosted: Mon Apr 26, 2010 5:00 pm    Post subject: Reply with quote

I've tested it in Win7
Back to top
View user's profile Send private message
jtrihas



Joined: 24 Apr 2010
Posts: 4

PostPosted: Mon Apr 26, 2010 6:31 pm    Post subject: Reply with quote

sagitario wrote:
I've uploaded a preliminary v0.3.7 to the download folder
http://www.dsource.org/projects/visuald/browser/downloads

Please try it again with this version.

Thanks,
Rainer



Yes, it works with v0.3.7, I've tested in VS10 on Win7.

Cheers,
John
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Visual D All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group