freopen() problems
Mumit Khan
khan@xraylith.wisc.EDU
Tue Aug 31 23:49:00 GMT 1999
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
More information about the Cygwin
mailing list