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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f65590b82b0eac10 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-17 06:35:06 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!psinet-eu-nl!psiuk-p4!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Can't redirect output from gnat-3.13p-nt Date: Fri, 17 Aug 2001 09:28:18 -0400 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: <9lj65j$bpm$1@nh.pace.co.uk> References: <3B7CD645.6597796F@CCI.Sema.de> NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 998054899 12086 136.170.200.133 (17 Aug 2001 13:28:19 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 17 Aug 2001 13:28:19 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:12041 Date: 2001-08-17T13:28:19+00:00 List-Id: I believe you can use the -gnatl switch to create a compiler listing. You can redirect the output of the compiler listing to a file and this will contain error messages along with the surrounding code. (You'll see the error messages on the screen but they also go to the listing.) This isn't exactly what you asked for, but it works pretty well and I generally prefer having the listing with the error messages anyway. MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com Web: http://www.mcondic.com/ "Vincent Smeets" wrote in message news:3B7CD645.6597796F@CCI.Sema.de... > Hallo, > > I have installed the GNAT compiler from gnat-3.13p-nt.exe on my > Windows98 computer. > > When I compile a file, I can't redirect the output to a file. It will > always be displayed in a window. When there are many errors, I can't see > the first one. I use the command: > gcc -c prog.adb >errors.txt > > Is there a way to get the errors in a file? I use the gvim-editor and it > can then jump directly to the location of the error if it has a file > with the errors.. > > I'm asking for redirecting the output. I'm not asking for an other > editor which can also jump to the error location! > > Thanks, > Vincent > > -- Vincent Smeets Competence Center Informatik GmbH > -- Tel. : +49-5931-805461 Postfach 1225 > -- Fax : +49-5931-805175 49702 Meppen, Germany > -- mailto:Vincent.Smeets@CCI.Sema.de http://www.CCI.de/ > -- PGP fingerprint: E2437E38AAA9CA7D A31E7D751F1B6454 8AED7B76