Thread overview
rdmd executable location
Dec 15, 2010
CrypticMetaphor
Dec 15, 2010
Andrej Mitrovic
Dec 15, 2010
CrypticMetaphor
Dec 15, 2010
Andrej Mitrovic
Dec 15, 2010
CrypticMetaphor
Dec 15, 2010
Nick Voronin
Dec 15, 2010
CrypticMetaphor
December 15, 2010
Hello, I'm having a bit of trouble with rdmd. rdmd puts the executable in a temp folder, even with the --build-only option. Maybe this is a silly question but, how can I compile with rdmd so I get the executable in the folder I am  currently at?

other info: I'm programming in Windows XP with dmd version 2.50
December 15, 2010
Try rdmd -od%cd% filename.d

On 12/15/10, CrypticMetaphor <CrypticMetaphor88@gmail.com> wrote:
> Hello, I'm having a bit of trouble with rdmd. rdmd puts the executable in a temp folder, even with the --build-only option. Maybe this is a silly question but, how can I compile with rdmd so I get the executable in the folder I am  currently at?
>
> other info: I'm programming in Windows XP with dmd version 2.50
>
December 15, 2010
If I run it with the rdmd version that came with the compiler, nothing special happens, it just compiles and runs the code, the executable doesn't end up in my current folder. ( rdmd build 20100913 ).

If I run it with the compiler version of this code (rdmd build 20101215):
http://dsource.org/projects/phobos/browser/trunk/tools/rdmd.d

I get an assertion error on line 51, so that doesn't work either.
December 15, 2010
On 12/15/10, CrypticMetaphor <CrypticMetaphor88@gmail.com> wrote:
> If I run it with the rdmd version that came with the compiler, nothing special happens, it just compiles and runs the code, the executable doesn't end up in my current folder. ( rdmd build 20100913 ).

Sorry, that should be:

rdmd -od%cd%\ filename.d

Notice the backslash there. Otherwise it will create an executable on the root drive with the name of the folder you're compiling in. Funky..

Anyway there are more switches here: http://www.digitalmars.com/d/2.0/dmd-windows.html#switches
December 15, 2010
try -of option.

On Wed, 15 Dec 2010 21:59:32 +0300, CrypticMetaphor <CrypticMetaphor88@gmail.com> wrote:

> Hello, I'm having a bit of trouble with rdmd. rdmd puts the executable in a temp folder, even with the --build-only option. Maybe this is a silly question but, how can I compile with rdmd so I get the executable in the folder I am  currently at?
>
> other info: I'm programming in Windows XP with dmd version 2.50


-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/
December 15, 2010
> Sorry, that should be:
>
> rdmd -od%cd%\ filename.d
>
> Notice the backslash there. Otherwise it will create an executable on
> the root drive with the name of the folder you're compiling in.
> Funky..
>
> Anyway there are more switches here:
> http://www.digitalmars.com/d/2.0/dmd-windows.html#switches

Now that you mentioned it, I did find the executable one folder above where I executed rdmd :P, but what you wrote works, yay. Thanks!
December 15, 2010
On 12/15/2010 8:58 PM, Nick Voronin wrote:
> try -of option.

rdmd -ofmain main.d
works too!
Thanks :P