comp.lang.ada
 help / color / mirror / Atom feed
From: wangcity@hotmail.com (wang tianyi)
Subject: Re: Use gnat and emacs(Ada-mode) can not compile file :(
Date: 4 May 2003 07:00:26 -0700
Date: 2003-05-04T14:00:27+00:00	[thread overview]
Message-ID: <332408c5.0305040600.2d188a16@posting.google.com> (raw)
In-Reply-To: x7vn0i34zgw.fsf@smaug.pushface.org

Simon Wright <simon@pushface.org> wrote in message news:<x7vn0i34zgw.fsf@smaug.pushface.org>...
> 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&#65292;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.



  reply	other threads:[~2003-05-04 14:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-03  8:13 Use gnat and emacs(Ada-mode) can not compile file :( wang tianyi
2003-05-03 19:11 ` Simon Wright
2003-05-04 14:00   ` wang tianyi [this message]
2003-05-05 17:37     ` Simon Wright
2003-05-05 20:11 ` Stephen Leake
2003-05-06 21:26 ` Georg Bauhaus
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox