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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,603e300f89990b5d,start X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!d77g2000hsb.googlegroups.com!not-for-mail From: Joe Newsgroups: comp.lang.ada Subject: Compiling Ada Projects with Emacs Date: Thu, 18 Sep 2008 19:16:22 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 134.240.241.2 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1221790583 2793 127.0.0.1 (19 Sep 2008 02:16:23 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 19 Sep 2008 02:16:23 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d77g2000hsb.googlegroups.com; posting-host=134.240.241.2; posting-account=ZyfIlgoAAADvwmSv7gUPoyt-iOc2yu_g User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.2) Gecko/2008090211 Ubuntu/8.10 (intrepid) Firefox/3.0.2,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:7767 Date: 2008-09-18T19:16:22-07:00 List-Id: 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? Thanks, Joe