> 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