REDIRECTION

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Mon Apr 17 23:48:00 GMT 2000


> You need to redirect stderr as well. Make sure that you are not using
> a shell that sucks (namely csh), and run it like this:
> 
> gcc -c -Wall test.cpp 2>&1 > output.txt.
> 
> Peter

Alternatively, if you do use a shell that sucks (namely csh), run it
like that:

gcc -c -Wall test.cpp >& output.txt

Regards,
martin


More information about the Gcc-help mailing list