Hi all,
I've gotten stuck again. I'm trying to compile an Ada project using
the .gpr file. I went through the examples to try and get those to
work. I can't compile Example 4 from the ada mode info pages. I load
the project file, but then there is no "Set main and build" option in
my menu. I'm using emacs
23.0.60 with the latest ada-mode with all
customization options set at the default.
I try to compile hello_4.adb and I get this:
cd /home/joe/prog/ada/examples/Example_4/Gnat_Project/Other/
gnatmake -o hello_4 hello_4 -g -cargs -gnatq -gnatQ -bargs -largs
gcc-4.3 -c -g -gnatq -gnatQ hello_4.adb
hello_4.adb:1:06: file "hello_pkg.ads" not found
hello_4.adb:5:04: "Hello_Pkg" is undefined
gnatmake: "hello_4.adb" compilation error
I can get it to compile by customizing "Ada Prj Default Gnatmake Opts"
to include the -P switch with the location to the gpr file. It seems
like I'm just missing an important variable in this option.
Also, how do you enable syntax highlighting for .gpr files?