comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: emacs compliation error (ada mode)
Date: Tue, 16 Jun 2015 08:26:57 +0100
Date: 2015-06-16T08:26:57+01:00	[thread overview]
Message-ID: <lyfv5si05a.fsf@pushface.org> (raw)
In-Reply-To: 6bf1467d-4a5f-4809-9633-f33ce3fc585a@googlegroups.com

pincerfae@gmail.com writes:

> In trying out a 'hello world' tutorial, I keep getting an error
> message of this sort:
>
> Compilation started at Mon Jun 15 13:58:27
>
> ./hello_world
> '.' is not recognized as an internal or external command,
> operable program or batch file.
>
> Compilation exited abnormally with code 1 at Mon Jun 15 13:58:27
>
>
> the hello_world.exe program is there in the project folder. what am I
> missing?

You're on Windows, and I think you must - by design or not - be running
cmd as your shell.

cmd would interpret "./hello_world" as "run the program '.' and pass it
the switch '/hello_world'". Cmd needs a backslash, ".\hello_world".

> I'm using emacs 24.2 with ada mode on win7.

You don't say which ada-mode you're using. M-x ada-mode-version should
tell you.

Here, with 5.1.8, I think you'd customise Ada Build Run Cmd in the Ada
Build subgroup from ./${main} to .\${main} - in your case it may be in
the top-level Ada customisation group and just called Ada Run Cmd or
something like that.

  reply	other threads:[~2015-06-16  7:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-15 21:00 emacs compliation error (ada mode) pincerfae
2015-06-16  7:26 ` Simon Wright [this message]
2015-06-16 12:35   ` Dennis Lee Bieber
2015-06-17 11:52     ` Jean François Martinez
2015-06-16 20:39 ` Stephen Leake
2015-06-16 22:35   ` pincerfae
2015-06-17  7:47     ` Simon Wright
2015-06-17 11:25       ` Simon Wright
2015-06-17 17:21     ` Stephen Leake
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox