Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
December 15, 2010 rdmd executable location | ||||
---|---|---|---|---|
| ||||
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 Re: rdmd executable location | ||||
---|---|---|---|---|
| ||||
Posted in reply to CrypticMetaphor | 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 Re: rdmd executable location | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | 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 Re: rdmd executable location | ||||
---|---|---|---|---|
| ||||
Posted in reply to CrypticMetaphor | 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 Re: rdmd executable location | ||||
---|---|---|---|---|
| ||||
Posted in reply to CrypticMetaphor | 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 Re: rdmd executable location | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | > 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 Re: rdmd executable location | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nick Voronin | On 12/15/2010 8:58 PM, Nick Voronin wrote:
> try -of option.
rdmd -ofmain main.d
works too!
Thanks :P
|
Copyright © 1999-2021 by the D Language Foundation