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,FREEMAIL_FROM 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-04 07:00:27 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: wangcity@hotmail.com (wang tianyi) Newsgroups: comp.lang.ada Subject: Re: Use gnat and emacs(Ada-mode) can not compile file :( Date: 4 May 2003 07:00:26 -0700 Organization: http://groups.google.com/ Message-ID: <332408c5.0305040600.2d188a16@posting.google.com> References: <332408c5.0305030013.216af8bf@posting.google.com> NNTP-Posting-Host: 219.140.132.124 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1052056827 5151 127.0.0.1 (4 May 2003 14:00:27 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 4 May 2003 14:00:27 GMT Xref: archiver1.google.com comp.lang.ada:36936 Date: 2003-05-04T14:00:27+00:00 List-Id: Simon Wright wrote in message news:... > 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? yes, i use gnat 3.15p , in windows xp. > > > 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} > ) > in "Project and Editor configuration. -->[Ada Menu]" Compiling a single file (menu Ada->Compile File): [Help] (comp_cmd) it's always is :"cd ${build_dir} && gcc -c " whatever I fixed it to "gcc -c" ,but can not save. :( --i use the " [Save]" in the page below,but still can not save , every time ,it's "cd ${build_dir} && gcc -c " > 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. The maillist is not work now ,i send email to it ,but my email can not arrive.