From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: emacs compliation error (ada mode) Date: Tue, 16 Jun 2015 08:26:57 +0100 Organization: A noiseless patient Spider Message-ID: References: <6bf1467d-4a5f-4809-9633-f33ce3fc585a@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="2c7d8f71a176d2eaa78ec9fbd86e1d4a"; logging-data="30371"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19CGEZlr1DWX730Ww7isgKH0oVSaLQbI4k=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:FV+XlMXzkx/nd3/JORtRq31rEK8= sha1:KWxEGtoFntv8zaM9LTq8XOcSjm4= Xref: news.eternal-september.org comp.lang.ada:26336 Date: 2015-06-16T08:26:57+01:00 List-Id: 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.