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

Bud + GDC 0.23 on Windows - need help

 
Post new topic   Reply to topic     Forum Index -> Build
View previous topic :: View next topic  
Author Message
randomZ



Joined: 04 Dec 2004
Posts: 31
Location: Tuebingen, Germany

PostPosted: Fri Apr 06, 2007 3:25 pm    Post subject: Bud + GDC 0.23 on Windows - need help Reply with quote

Hi,

I'm trying to use GDC 0.23 on Win2k together with Bud.

For simplicity, I wrote a simple "Hello World" program (see below). I've come so far as to write the following build.cfg file, trying to make use of the settings in the docs:

Code:
INIT:CompilerExe = gdmd.bat
INIT:LinkerExe = gdc.exe
INIT:ConfigFile =
INIT:LinkerDefs =
INIT:ArgDelim = " "
INIT:ArgFileDelim = " "
INIT:ObjExtension = o
INIT:OutFileSwitch = "-o "
INIT:PostSwitches = No
INIT:AppendLinkSwitches = No


but trying to build my code file yields a linker error:

Code:
F:\Dokumente und Einstellungen\Sebastian\Eigene Dateien\projects\bud>bud -Rn -full hello.d
gdc.exe: hello.exe: No such file or directory


Apparently, the linker is not called correctly: When I run Bud with the -V switch, the linker command line looks like

Code:
Running 'F:\MinGW\bin\gdc.exe   hello.exe   hello.def '


which apparently makes gdc think hello.exe is an input file. What can I do to make bud call the linker correctly?

Here's my full verbose output:

STDOUT
Code:
*** build v3.04 (build 2512)***
Default target is 'hello'
Current Dir 'F:\Dokumente und Einstellungen\Sebastian\Eigene Dateien\projects\bud\'
Compiler installed in F:\MinGW\bin\
Active Version: 'DigitalMars'
Active Version: 'D_InlineAsm'
Active Version: 'build'
Active Version: 'BuildVerbose'
Active Version: 'X86'
Active Version: 'LittleEndian'
Active Version: 'Windows'
Active Version: 'Win32'
 file->module hello.d => hello
Time 2007/04/06 23:16:22 for source hello.d
Time not recorded for object hello.obj
Scanning hello.d
 module->file std.stdio => std\stdio.d
 file->module std\stdio.d => std.stdio
Time not recorded for source std\stdio.d
Time not recorded for object std\stdio.obj
source file[0] hello.d
Newer time: from not recorded to 2007/04/06 23:16:22

Building target 'F:\Dokumente und Einstellungen\Sebastian\Eigene Dateien\projects\bud\hello.exe'
Time not recorded for hello.exe (target)
Time 2007/04/06 23:16:22 (most recent)
hello.d newer than its object file
Compiling with ..........
-op "-IF:\Dokumente und Einstellungen\Sebastian\Eigene Dateien\projects\bud" hello.d

Running 'F:\MinGW\bin\gdmd.bat -c -op "-IF:\Dokumente und Einstellungen\Sebastian\Eigene Dateien\projects\bud" hello.d '
Successful
Linking with ..........
  hello.exe   hello.def

Running 'F:\MinGW\bin\gdc.exe   hello.exe   hello.def '
Failed. Return code: 0001


build args: ...............
 [ 0]: -op (COMPILER)
 [ 1]: -Rn
 [ 2]: -V
 [ 3]: -full

compiler args: ................
 [ 0]: -op
 [ 1]: -IF:\Dokumente und Einstellungen\Sebastian\Eigene Dateien\projects\bud\

command line files: ...............
 [ 0]: hello.d

source files: ...............
 [ 0]: hello.d

import roots: .................
 [ 0]: F:\Dokumente und Einstellungen\Sebastian\Eigene Dateien\projects\bud\

ignored packages: .................
 [ 0]: phobos


STDERR
Code:
gdc.exe: hello.exe: No such file or directory


And here's my Hello World code:

Code:
import std.stdio;
void main()
{
   writefln("Hello World!");
}


I hope someone can help.

Regards,
Sebastian
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Build 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