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]

open statement


Gentlepersons,

    I have been a user of Fortran77 on a Compaq Unix system,
on an alpha.

    I have recently installed Red Hat Linux on a pentium II,
and have copied over all my fortran source code.

    Gnu fortran seems to want alphanumeric data or variable
vectors to be called type CHARACTER rather than INTEGER*1,
as I have used in the past.  That was easy to fix.

    I have a persistent problem with the OPEN statement.
as in

OPEN(UNIT=JDISK,NAME=NAMEIN,STATUS='OLD')

                                                 ^ INCOMPATIBLE TYPE
VARIABLE


NAMEIN is a vector of character type; a variable which I read
into a file iteratively.

    I have attached sample code which compiles and executes
under Compaq Fortran77, but dies on Gnu F77 compilation
because of the OPEN statement error.

    Any suggestions?

    Many thanks.

R. Radna, M.D., Ph.D.

ENVELOPE3.FOR


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