This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: freopen() problems


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]