Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!hi3!sanjay From: sanjay@hi3.ACA.MCC.COM (Sanjay Keshava) Newsgroups: comp.sys.ibm.pc Subject: redirecting stderr to stdout Keywords: Intek redirect stderr stdout compiler Message-ID: <976@hi3.ACA.MCC.COM> Date: 31 May 90 17:33:24 GMT Reply-To: sanjay@mcc.com (Sanjay Keshava) Distribution: usa Organization: MCC Human-Interface Lines: 30 Hi folks. I'm using the Intek C++ compiler on a 386 PC running DOS 4.0. This compiler outputs its error messages to stderr, so I cannot use the redirection character ">" at the command level to save the output in a file. Does anyone have a hack that will modify DOS to overlap stderr onto stdout? I tried writing a short assembly program that uses DOS INT 21H, function 46H (CDUP) to force stderr to output to stdout, but it didn't work. I'm not very knowledgable with the DOS interrupts, so my understanding of CDUP's operation may be wrong. I also retrieved REDIRECT.C from Simtel20, but it didn't solve my problem. In fact it causes a stack overflow error. Part of the problem might stem from the compiler switching the 386 into protected mode to take advantage of extended memory and then switching back to real mode when it's done. Thanks in advance for any help. -- Sanjay ->|<- sanjay@hi3.aca.mcc.com