------- Comment #3 from marbertone at gmail dot com  2008-12-11 16:38 -------
(In reply to comment #2)

Hello,
I attach you the problematic lines. Gfortran for windows doesn't work. It
crashes in the two cases (native and cygwin). I repeat, on linux it works
perfectly with gfortran. On Vista it says 'invalid win32 application after
compiling'. I thank you anticipately :)
Mario Alberto

------------------------
    open(file = 'fort.1', unit=1, form = 'formatted')
  DO I = 1,NA
        READ (1,*) XA(I),YA(I),ZA(I)
        ENDDO
         DO I = 1,NB
         READ (1,*) XB(I),YB(I),ZB(I)
         ENDDO
CLOSE (1)
        WRITE(1,*) a, b c
     WRITE(1,*) d, e
     WRITE(1,*) f, g
     WRITE(1,*) a1, a2
     WRITE(1,*) a4, a5, a6
     WRITE(1,*) i1
     DO I = 1,NA
          WRITE (1,*) XA(I),YA(I),ZA(I)
     ENDDO
     DO I = 1,NB
          WRITE (1,*) XB(I),YB(I),ZB(I)
     END
CLOSE(1)
---------------------------

> g77 was removed from GCC more than 3.5 years ago and is no longer support.
> 
> However, ask yourself does it make sense to "first open it, then read,
> then close, then write, then close again".  Either re-open the file
> before your write or don't close it.
> 
> PS: why are you using g77 of windows?  Why not use gfortran?
> 


-- 


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

Reply via email to