Man, I have no idea what's going on. I was trying out building with xfbuild, 
and I keep getting different results on each attempted build:

Attempt 1:
C:\next>xfbuild myproject.d myfolder\another.d +full +o=main
Build failed: myfolder/another.obj: The system cannot find the file specified.

Attempt 2:
C:\next>xfbuild myproject.d myfolder\another.d +full +o=main
Error: Error writing file 'myfolder\another.obj'

2010-08-22 00:29:36,025 Info [root] - Build failed: 'dmd @xfbuild.a27c00.rsp' 
returned 1
.

abnormal program termination

Attempt 3:
C:\next>xfbuild myproject.d myfolder\another.d +full +o=main
2010-08-22 00:29:37,240 Info [root] - Build failed: myfolder/another.obj: The 
process ca
nnot access the file because it is being used by another process.

abnormal program termination

Attempt 4:
C:\next>xfbuild myproject.d myfolder\another.d +full +o=main
Error: Error writing file 'myfolder\another.obj'

2010-08-22 00:29:38,214 Info [root] - Build failed: 'dmd @xfbuild.a27a00.rsp' 
returned 1
.

abnormal program termination

Attempt 5, *now* it works:
C:\next>xfbuild myproject.d myfolder\another.d +full +o=main

Attempt 6:
C:\next>xfbuild myproject.d myfolder\another.d +full +o=main
OPTLINK (R) for Win32  Release 8.00.2
Copyright (C) Digital Mars 1989-2009  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
.objs\another.obj
 Error 2: File Not Found .objs\another.obj
--- errorlevel 1
xfbuild.Process.ProcessExecutionException: 'dmd @xfbuild.a00e00.rsp' returned 1.
----------------
[  42fab0]       0+0   tango.core.tools.WinStackTrace.winAddrBacktrace          
                        @0+127388 :0
[  42902c]       0+0   tango.core.tools.StackTrace.defaultAddrBacktrace         
                        @0+100120 :0
[  42909d]       0+0   tango.core.tools.StackTrace.basicTracer                  
                        @0+100233 :0
[  4097ce]       0+0   xfbuild.Process.ProcessExecutionException._ctor          
                        @0+11 Process.d:32
[  409ade]       0+0   xfbuild.Process.executeAndCheckFail                      
                        @0+52 Process.d:138
[  409d65]       0+0   xfbuild.Process.executeCompilerViaResponseFile           
                        @0+62 Process.d:180
[  40e925]       0+0   xfbuild.Linker.link                                      
                        @0+5 Linker.d:70
[  409fec]       0+0   xfbuild.BuildTask.BuildTask.link                         
                        @0+13 BuildTask.d:80
[  409f94]       0+0   xfbuild.BuildTask.BuildTask.execute                      
                        @0+13 BuildTask.d:60
[  402d56]       0+0   __Dmain                                                  
                        @0+8 Main.d:326
[  4149ad]       0+0   rt.compiler.dmd.rt.dmain2.main.runMain                   
                        @0+16537 :0
[  414903]       0+0   rt.compiler.dmd.rt.dmain2.main.tryExec                   
                        @0+16367 :0
[  4149eb]       0+0   rt.compiler.dmd.rt.dmain2.main.runAll                    
                        @0+16599 :0
[  414903]       0+0   rt.compiler.dmd.rt.dmain2.main.tryExec                   
                        @0+16367 :0
[  4148bb]       0+0   _main                                                    
                        @0+16295 :0
[  43294c]       0+0   _mainCRTStartup                                          
                        @0+139320 :0
[7c817074]       0+0   ???                                                      
                           @0+2084595552 :0


Geeeeeeeeeeeeeeez.. What am I supposed to use to compile the files? DSSS 
doesn't work, xfbuild seems broken most of the time, and I can't even use DMD 
with a simple directory structure like this:

root\myproject.d
root\myfolder\another.d

myproject.d:
module myproject;

import myfolder.another;

void main()
{
}


another.d:
module another;

void fun(long n)
{
}

C:\test>dmd -ofmain.exe myproject.d myfolder\another.d
myproject.d(3): Error: module another from file myfolder\another.d conflicts 
with another module another from file myfolder\another.d

I'll do a reinstall of DMD, maybe my system is broken or something.

Nick Sabalausky Wrote:

> 

Reply via email to