REDIRECTION

Peter A. Friend octavian@corp.earthlink.net
Mon Apr 17 19:19: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

---
Software Engineer
EarthLink, Inc.

On Mon, 17 Apr 2000 Nick_Jin@Consilium.com wrote:

> I need your help. I try to redirection the result  (compiling and linking) to
> file, not to screen. But I do not know how to do it. If I use the followng
> command:
> 
>   gcc -c -Wall test.cpp > output.txt.
> 
> It still print the result to the screen. I check some DJGPP help and can not
> find anything. I appreciate your help.
> 
> Thanks,
> 
> Nick
> 
> 
> 



More information about the Gcc-help mailing list