From: Gavin Sinclair Newsgroups: comp.os.msdos.djgpp Subject: Re: gcc output redirection Date: Tue, 23 Dec 1997 14:31:29 +1100 Organization: University of New South Wales Lines: 28 Message-ID: References: NNTP-Posting-Host: flute03.orchestra.cse.unsw.edu.au Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Fri, 19 Dec 1997, Theuzifan wrote: > Hi! > > How can I redirect the output error messages to a file (it writes it to > [...] > Theuzifan Sumachingun From the command-line: redir -e [args] From the program itself (useful for debugging): #include // I think! freopen("ERRORS.LST", "w", stderr); Be warned, though, that when you do this (you can do it with stdout as well), you can't get stderr back! -- Gavin Sinclair