www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/14/19:47:44

Xref: news2.mv.net comp.os.msdos.djgpp:2695
From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Error messages and warnings...
Date: 14 Apr 1996 07:55:08 GMT
Organization: The National Capital FreeNet
Lines: 26
Sender: ao950 AT freenet2 DOT carleton DOT ca (Paul Derbyshire)
Message-ID: <4kqb0s$m28@freenet-news.carleton.ca>
References: <Pine DOT SUN DOT 3 DOT 92 DOT 960411105053 DOT 2018A-100000 AT conan DOT ids DOT net>
Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
NNTP-Posting-Host: freenet2.carleton.ca
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Tom Sgouros (tomss AT ids DOT net) writes:
> Can anyone tell me how to record the voluminous error messages that the
> code I am working on generates? (I am porting a big program that was
> compiled under WATCOM, and am seeing oceans of undefined references.) The
> DOS redirection seems only to redirect standard output, and I guess these
> are all written onto the error output, and are not redirected. I can't
> figure out how to redirect the DOS error output, and I can't find a
> 'logfile' option to djgpp, either.

You can redirect stderr to a file with an obscure go32 option listed in
the FAQ somewhere, but it has a side effect: once in a while the error
messages thus redirected end up in the .a files and other files generated
along the compile, assemble, link chain! These of course completely mess
up compilation. Obviously, for its inner workings cc1 or some such
redirects stderr while compiling temporary .a files, which seems
rather stupid to me...they must have their reasons, obscure though these
are. 
As a result this redirection is not that great, and I know of no
alternative that works perfectly. This is one of the compiler's
downsides... maybe V2 has a fix for this.
--
    .*.  "Clouds are not spheres, mountains are not cones, coastlines are not
 -()  <  circles, and bark is not smooth, nor does lightning travel in a
    `*'  straight line."    ,------------------------------------------------
         -- B. Mandelbrot  |  Paul Derbyshire (PGD) ao950 AT freenet DOT carleton DOT ca

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019