[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] GCC console output capture

From: Dave Hylands
Subject: Re: [avr-gcc-list] GCC console output capture
Date: Wed, 11 May 2005 00:55:20 -0700

Hi Juergen,

> for my AVR projects I use CodeWright 7 as editor. To compile my design I
> call a batchfile which executes make.exe. The compilation works fine but I
> can not capture the GCC console messages (make.exe all > error.txt) and
> because of that I can not use the automatic error extraction parser of CW.


   make.exe all > error.txt

only redirects stdout into error.txt. gcc send it's errors to stderr.
If you're using Windows 2000 or XP, then you should be able to do:

   make.exe all > error.txt 2>&1

which will redirect stdout to error.txt and then redirect handle 2
(stderr) tto handle 1 (stdout) so both your stdout and stderr will get
redirected into error.txt.

I'm assuming that you're using cmd.exe and not command.com
(command.com doesn't support that syntax).

Dave Hylands
Vancouver, BC, Canada

reply via email to

[Prev in Thread] Current Thread [Next in Thread]