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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.129.91.137 with SMTP id p131mr3277864ywb.0.1434494139359; Tue, 16 Jun 2015 15:35:39 -0700 (PDT) X-Received: by 10.50.17.2 with SMTP id k2mr136535igd.11.1434494139331; Tue, 16 Jun 2015 15:35:39 -0700 (PDT) Path: buffer1.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!z60no1612946qgd.1!news-out.google.com!7ni439igs.0!nntp.google.com!h15no3311853igd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 16 Jun 2015 15:35:38 -0700 (PDT) In-Reply-To: <85fv5r9ymh.fsf@stephe-leake.org> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.212.64.185; posting-account=ctJm-AoAAABQaCDtzbgPWk5DGAl9lKGW NNTP-Posting-Host: 66.212.64.185 References: <6bf1467d-4a5f-4809-9633-f33ce3fc585a@googlegroups.com> <85fv5r9ymh.fsf@stephe-leake.org> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <2b3b83b6-9a13-47a9-b9f1-c972f698974a@googlegroups.com> Subject: Re: emacs compliation error (ada mode) From: pincerfae@gmail.com Injection-Date: Tue, 16 Jun 2015 22:35:39 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: number.nntp.giganews.com comp.lang.ada:193659 Date: 2015-06-16T15:35:38-07:00 List-Id: I'm running ada mode 5.18. well, since the file is in a location I can locate, maybe I'd be better just running the program directly, though it defeats the purpose of building it in emacs. I wasn't aware I needed to use keystrokes when there's a menu that can be used. On Tuesday, June 16, 2015 at 1:39:21 PM UTC-7, Stephen Leake wrote: > 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