This is the mail archive of the gcc@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]

Fortran


Dear Sir/Madam,

I'm new to linux. I tried to compile my fortran program using G77 and it
works. But when I run
the program, after I type the input file and the designated output file,
the program got aborted.
I already put the input file in the same directory as the program. My
program work in windows
using MS compiler.

I use the following sintax for open file:

open(unit=5, file='inputfile', status='new')
open(unit=6, file='output', status='unknown')

read(5,*)n ...........(something like this)

write(6,*) hf  ........(something like this)

Is it impossible to write program in linux(g77) using the input file
and writing the output into fiel

Thank you for your kind attention and cooperation.

Best regards,

Suwito


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