[Emacs-ada-mode] emacs ada mode troubles
Stephen Leake
Stephe.Leake at nasa.gov
Mon Sep 8 00:50:50 PDT 2008
Joe Schafer <joseph.schafer at usma.edu> writes:
> Hey all, I'm having trouble with ada-mode, specifically with
> projects.
Ok. Please subscribe to the Ada mode mailing list, so I don't have to
approve your messages.
> I'm using emacs 23.0.60.1 on Ubuntu 8.10
I don't have that distribution; currently I'm running Emacs 22.2 on
Windows. But the Ada mode menu should be the same.
> I'm going through the examples under "Compiling Examples"
>
> For example 1 when I check the hello.adb I get this.
> For some reason it doesn't show any errors
>
>
>> -*- mode: compilation; default-directory: "~/prog/ada/examples/Example_1/" -*-
>> Compilation started at Sat Sep 6 21:47:56
>>
>> gcc -x ada -c -gnatq -gnatQ /home/joe/prog/ada/examples/Example_1/hello.adb -gnats
>>
>>
>>
>> Compilation finished at Sat Sep 6 21:47:56
First; did you leave out the 'use Ada.Text_IO;' line? That is the
error; it can be hard to type incorrect code deliberately.
Second; run gcc from a bash shell (under Emacs or not), and mess with
the file hello.adb until you do get an error.
Finally; what menu item or keystroke did you invoke? 'Ada | check
file' runs gnatmake, not gcc -x ada. Unless you've overridden that
somewhere. Please run this with 'emacs -Q'.
> There's not "set main and build" option under the menu either.
What is on the Ada menu? It should be:
Help
Options
Customize
Check file
Compile file
Set main and Build
...
--
-- Stephe
More information about the Emacs-ada-mode
mailing list