Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-Id: <199908130534.AAA02078@mercury.xraylith.wisc.edu> To: jim AT nga DOT com (Jim Roy) cc: cygwin AT sourceware DOT cygnus DOT com Subject: Re: freopen() problems In-Reply-To: Your message of "Thu, 12 Aug 1999 19:42:11 PDT." <9908130242 DOT AA22543 AT nga DOT nga DOT com> Date: Fri, 13 Aug 1999 00:34:01 -0500 From: Mumit Khan jim AT nga DOT com (Jim Roy) writes: > > The following code works on at least one persons system. > On mine, the freopen() call for one stream wipes out the other. > If I uncomment the second pair, all the reads/writes work fine. > > This is a win98 system. > I'v upgraded to 2.95 versions of gcc and mingw-extras > I'm not geting the cygwin.dll by mistake. > I'm using -mwindows, and -mno-cygwin. > > I'm at my wits end. > I will be most grateful for ideas about what's left to double check? Please try the following: - comment out WinMain - take out -mwindows and see what it does. I'm not sure how stdin/out are attached for windows subsystem apps. Does it work with Microsoft's compiler? Regards, Mumit -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com