Re: gcc warnings

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

 



On Tue, 12 Aug 2008, Andrew Bell wrote:

On Tue, Aug 12, 2008 at 10:25 AM, kamelopardus <killorn@xxxxxxxxx> 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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux