From: Rodeo Red Newsgroups: comp.os.msdos.djgpp Subject: Re: Read Me Third: A Short FAQ List Date: Wed, 20 Oct 1999 08:35:48 -0400 Organization: Church of Evangelical Environmental Extremism Lines: 57 Message-ID: X-Orig-Message-ID: <380DB723 DOT B4759EE5 AT netstep DOT net> References: Abuse-Reports-To: support at netstep.net to report improper postings NNTP-Proxy-Relay: library1.airnews.net NNTP-Posting-Time: Wed Oct 20 07:35:22 1999 NNTP-Posting-Host: !a5=D-@[.^q(OrL (Encoded at Airnews!) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.5 [en] (Win98; I) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Johan Venter wrote: > Rodeo Red wrote in message > news:E74AC92C3E4A9C9C DOT 4E994DD3148FBF35 DOT FA4770D95AB418A2 AT lp DOT airnews DOT net... > > the answer I got from "Johan Venter" > > > "Redirect it too a file with redir: > > redir -oe -e error.log > > So, for a simple compile example: > > redir -oe -e error.log gcc -o test.exe test.c > > The output will be in error log." > > I hope I haven't caused any confusion, Not at all. Your slight mistake wasn't my problem. I was just explaining that I didn't exactly know what the commands were supposed to mean. Thanks for helping. > it's been a while since I used redir, so > I may have muddled the command line options (I thought above would work though, > stdout > stderr, then stderr > error.log). > > > > > I got it to work when I compiled a file but I have no idea what stdout and > stderr > > are. Never heard of em. What are they ? > > They are the standard C++ file handles for input (stdin), output (stdout) and > error reporting (stderr). They are basically a FILE *, but they are redirected > to hardware devices by default. stdin comes from the keyboard, stdout and stderr > go to the screen (by default). So, when you say printf("Hello World\n"); in your > program, you're actually printing the string to stdout. Ok that makes sense. Thanks. > > > > C:\djgpp>redir -oe -e error.log unzip32 djdev202 > > Bad command or file name > > > > C:\djgpp>redir -e error.log -oe unzip32 djdev202 > > Bad command or file name > > > > C:\djgpp> > > Do you actually have redir in your DJGPP/bin directory? And the DJGPP/bin > directory on your PATH? As it is above, C:\djgpp>redir -e error.log -oe unzip32 djdev202 is what I wrote. unzip32 and djdev202 are both in C:\djgpp so I think the answer to your questions are yes and yes. Rodeo Red