This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: freopen() problems
- To: jim@nga.com (Jim Roy)
- Subject: Re: freopen() problems
- From: Mumit Khan <khan@xraylith.wisc.EDU>
- Date: Fri, 13 Aug 1999 00:34:01 -0500
- cc: cygwin@sourceware.cygnus.com
jim@nga.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@sourceware.cygnus.com