gcc warnings
Joel Dice
dicej@mailsnare.net
Tue Aug 12 15:52:00 GMT 2008
On Tue, 12 Aug 2008, Andrew Bell wrote:
> On Tue, Aug 12, 2008 at 10:25 AM, kamelopardus <killorn@yandex.ru> wrote:
>>
>> Hello.
>>
>> I use gcc 3.4.2 under mingw32. I need to put compiler warnings about
>> uninitialized variables into some text file, for example, "warnings.txt".
>>
>> i try
>>
>> gcc -O -Wuninitialized -v echo.c>warnings.txt
>
> They are going to stderr, not stdout. Try:
>
> gcc -O -Wuninitialized -v echo.c 2>& > warnings.txt
I think you mean:
gcc -O -Wuninitialized -v echo.c > warnings.txt 2>&1
More information about the Gcc-help
mailing list