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-03 12:12:07 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Use gnat and emacs(Ada-mode) can not compile file :( Date: 03 May 2003 20:11:43 +0100 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: <332408c5.0305030013.216af8bf@posting.google.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1051989124 19512 62.49.19.209 (3 May 2003 19:12:04 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sat, 3 May 2003 19:12:04 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: archiver1.google.com comp.lang.ada:36918 Date: 2003-05-03T20:11:43+01: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 ^^^^^^^^ I don't recognise this, is this gnat 3.15p? > in winXP. > 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 just want to compile it for windows NOT want to use 'cross_prefix' > but every time i use "complile file" from menu, it always add && > before command gcc -c , and system not find what is &&, > so system tell : can not find need file. > > any way can get rid of "&&"? This isn't ${cross-prefix} (which will be empty, should cause you no problems). You're having trouble with your project settings ... I'm using a supported version, and on Linux, but try this .. Go to Ada->Project->Edit, click on Ada menu. You should see something like ... Compiling a single file (menu Ada->Compile File): [Help] (comp_cmd) [INS][DEL] cd ${build_dir} [INS][DEL] ${cross_prefix}gcc -c -g -O2 -gnatqQ -I${src_dir} ${full_current} [INS] (your Windows version may say for the first line [INS][DEL] cd /d ${build_dir} ) and each successive line is executed with a && to join them up: cd /d c:\Temp && gcc -c -g -O2 -gnatqQ -I. c:\Source\foo.adb I suspect your problem is that the Windows shell that Emacs is using doesn't understand the && properly. If you go to the ada-mode home page at http://libre.act-europe.fr/adamode/ you'll find a pointer to a mailing list, however it doesn't seem to have been used for a while .. worth a try.