Hi,

Doing that in the terminal, I get the same message.

Just using 'dmd <D file>' works, though.

I understand why the `-o` is there, but not why `-f ` is there.

What I do now is just use Geany's F8 to compile, the
terminal to build, and Geany's F5 to execute. Of course,
I'd like to use Geany's F9 too.

When I use dmd manually in command line, without the `-o`
switch, it always produces a sane name, so you do think
changing this in Geany's `Set Includes and Arguments` could
help?

On 07/09/2008, Enrico Tröger <enrico.troeger@uvena.de> wrote:
On Sat, 6 Sep 2008 16:43:40 +0200, Brendan <brenzie@gmail.com> wrote:

Hi,


> This is what I get: in the compiler tab:
>
> dmd -w "testing.d" -of "testing" (in directory:
> ~/Geany_Proj/testingD2) Compilation failed.
> Error: argument expected for switch '-of'
>
> Why is that switch there? Is it necessary? How do I prevent Geany
> from using that switch?


this switch specifies the name of the executable to be built.
For reference see
http://www.digitalmars.com/d/2.0/dmd-linux.html#switches.

I don't know why it isn't working for you, it should.
Try running

dmd -w "testing.d" -of "testing"

in the directory ~/Geany_Proj/testingD2 and check whether it results in
the same message.

The -of switch is there when linking the program (Build->Build or F9
key) to give the executable a sane name instead of something like
'a.out' or whatever the dmd might choose.
You can change/remove this in the Build->Set Includes and Arguments
dialog.

Regards,
Enrico


--
Get my GPG key from http://www.uvena.de/pub.asc

_______________________________________________
Geany mailing list
Geany@uvena.de
http://lists.uvena.de/cgi-bin/mailman/listinfo/geany