delorie.com/archives/browse.cgi | search |
From: | Gavin Sinclair <s2174215 AT cse DOT unsw DOT EDU DOT AU> |
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: | <Pine.GSO.3.95.971223143024.9377B-100000@flute03.orchestra.cse.unsw.EDU.AU> |
References: | <Pine DOT LNX DOT 3 DOT 95 DOT 971219112517 DOT 6390D-100000 AT silvia DOT rec DOT upv DOT es> |
NNTP-Posting-Host: | flute03.orchestra.cse.unsw.edu.au |
Mime-Version: | 1.0 |
In-Reply-To: | <Pine.LNX.3.95.971219112517.6390D-100000@silvia.rec.upv.es> |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
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 <errorfile> <yourProgram> [args] From the program itself (useful for debugging): #include <stdio.h> // 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |