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!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: emacs compliation error (ada mode) References: <6bf1467d-4a5f-4809-9633-f33ce3fc585a@googlegroups.com> Date: Tue, 16 Jun 2015 15:39:18 -0500 Message-ID: <85fv5r9ymh.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (windows-nt) Cancel-Lock: sha1:EpaXyH5S99XTnjba9VBW2jodHLY= MIME-Version: 1.0 Content-Type: text/plain X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: a373755808977e97f808418499 X-Received-Bytes: 2051 X-Received-Body-CRC: 3623481554 Xref: news.eternal-september.org comp.lang.ada:26350 Date: 2015-06-16T15:39:18-05: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. This looks like an error message from the cmd shell. "./" is sh shell syntax; it assumes "." is not in PATH. What does M-: shell-file-name show? If it's something that ends in "cmdproxy.exe", then you are running the cmd shell. > 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? > > I'm using emacs 24.2 with ada mode on win7. What version of ada-mode? (M-x ada-mode-version) What keystrokes are you using to invoke this? If it's ada-mode 5.x, C-c M-r, then you can change the variable ada-build-run-cmd in your .emacs: (setq ada-build-run-cmd "${main}") Then restart emacs and try again. You can also use this variable to specify command line args, but Makefiles are better in the long run. You can also override ada-build-run-cmd with run_cmd in an ada-mode project file; see the Emacs help for this variable (it should be in the info manual, but it's not). I always run Emacs on Windows with either Cygwin bash or MSYS2 bash as the shell. -- -- Stephe