Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Sender: cwilson AT ee DOT gatech DOT edu Message-ID: <370AEEDA.263634AF@ece.gatech.edu> Date: Wed, 07 Apr 1999 01:36:26 -0400 From: Charles Wilson X-Mailer: Mozilla 4.51 [en] (X11; I; HP-UX B.10.20 9000/777) X-Accept-Language: en MIME-Version: 1.0 To: dale henderson CC: cygwin AT sourceware DOT cygnus DOT com Subject: Re: undefined references for GUI library using Mingw32 References: <19990406234216 DOT 10961 DOT qmail AT hotmail DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit dale henderson wrote: > >But where is the problem report???? I don't have the time to go > >through > > I am not able to pipe the errors msgs from the compile to a file. > Here is an example: > make >& file will redirect both stdout and stderr of make (and everything called by make, such as gcc) to a file. 'Course, you won't see anything in your terminal window... So, you could try the following: make 2>&1 | tee file which (1) sets up a pipe to tee.exe -- i.e. stdout from make now points to stdin of tee (2) makes filedescriptor 2 (stderr) of make go to wherever filedescriptor 1 (stdout) is currently pointing -- which is the stdin of tee. Thus, tee gets both stdout and stderr. Tee is a program which copies its stdin to a file, and to stdout; it's distributed with cygwin. Cmd.exe also lets you do redirection in this manner, but you need either a native version of tee, or you can use the cygwin version of tee, but then things get hairy with path specifiers ( '/' vs '\'. I suppose you could use cygpath somehow). You can get a native port of tee (and ports of a lot of other gnu-ish stuff) from http://www.edv.agrar.tu-muenchen.de/~syring/win32/UnxUtils.html. Also, Anders Norlander has built mingw ports of a lot of gnu stuff - but not tee. Command.com? Well...it doesn't do this kind of redirection, so you need an external program, similar to the redir.exe that comes with djgpp. You can get that program from http://www.delorie.com/djgpp/dl/ofc/simtel/v2/djdev202.zip/bin/redir.exe, but it is intended for DOS and doesn't grok long filenames. I'm not sure why that matters, since redir doesn't really _do_ anything with the LFN's if they are there. Maybe it's related to the internal system() or spawnXX() call in redir. I dunno - it mostly works. Try redir -eo make | tee file --Chuck -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com