This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/32784] [win32] Using 'con' as assigned file generates Fortran runtime error: File 'con' does not exist



------- Comment #15 from dannysmith at users dot sourceforge dot net  2007-07-23 04:44 -------
(In reply to comment #13)
> Created an attachment (id=13950)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13950&action=view) [edit]
> Patch to provide conio support
> 
> Danny, can you please check this new patch.  Works on Cygwin as far as I can
> tell.
> 
Not on mingw.  If you run the app generated from conout.f  in an environ that
dup's and redirects stderr, it appears to work.  If you run from a plain
ordinary Windows console, I still get 
Hello, world! 
At line 2 of file a1.f (unit = 29, file = 'CONOUT$')
Fortran runtime error: Bad file descriptor

Try testing your cygwin-built app from DOS (with cygwin1.dll in %PATH, of
course).

Danny


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32784


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