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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d7ebd49467fb4662 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-05 13:25:36 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Use gnat and emacs(Ada-mode) can not compile file :( Date: 05 May 2003 16:11:12 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <332408c5.0305030013.216af8bf@posting.google.com> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1052166391 16356 128.183.235.92 (5 May 2003 20:26:31 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 5 May 2003 20:26:31 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:36989 Date: 2003-05-05T20:26:31+00:00 List-Id: wangcity@hotmail.com (wang tianyi) writes: > I use emacs21.3 and Ada-mode.el3.6 with gnat 1.5 compile Ada files > in winXP. Welcome to the most powerful (but most confusing) integrated development environment :). > but when i use "Ada->compile file" from menu, it tell me: "&& gcc > -c -gnatq i:/xxx.adb , system can not find need > file, > Compilation exited abnormally with code 1 at Sat May 03 > > 15:42:24" I don't use the Ada project settings to compile. As you have discovered, they are slightly broken, and very confusing. I recommend using Gnu makefiles. There is a version of make distributed with GNAT, but the one that comes with Cygwin is slightly better. So get Cygwin (www.cygwin.com), be sure to get 'make' with it, and read the make manual. For a good example of using make with Emacs and GNAT, see my web page http://www.toadmail.com/~ada_wizard/ -- -- Stephe