Date: 14 Dec 1992 15:30:38 +1100 From: Bill Metzenthen Subject: Re: Problem with errors to a file To: djgpp AT sun DOT soe DOT clarkson DOT edu writes: > I tried this for a while, but there is a problem I could never work around. > The CPP directs its output to stdout, so the 2r1 flag forces all CPP error > messages (missing includes, bad macros, etc) into the CPP output and then > causes the GCC compiler to puke on the imbedded error messages with no > useful error messages. (The intermediate files get deleted). Any easy fix > without a different shell or operating system? Is this behaviour peculiar to the djgpp gcc v1.09? Under Linux gcc, cpp is invoked with both infile and outfile arguments. Whenever I needed to redirect stderr under ms-dos I would use a tiny program called e2o thus: e2o gcc myprog.c >messages I understand that there are a number of similar programs available on simtel-20 which will do such redirection for you, plus other bells and whistles. --Bill