Re: Why pgf90 can not recognize some intrinsic function when compiling?



Leo.Aries.G@xxxxxxxxx wrote:
HI,Now I am learning to use pgf90 + redhat9 to compile some f90
program.
Here below is some part of the codes:
" implicit none
  intrinsic eof
  .....
  open(1,file=filename)
  do while(.not.eof(1))
  ..... "

such codes can be compiler by compaq visual fortran, But when I compile
it using pgi
"pgf90  -o a a.f90"
some instrucion given as below:
"GF90-S-0126-Name eof is not an intrinsic function "

My question is ; Since Eof is a intrinsic function included in Fortran
Lib,
Why CVF can but pgi can not recognize it?

Thanks!

Not all Fortran compilers implement all of the more obscure extensions supported by CVF. In this case; it would appear that the ways supported under the standard, for the last 25 years, should be preferred to an older extension supported by only a few compilers. I note that the description of this function is presented in an off color in the documentation I have, denoting an "extension to the F95 standard."
.




Relevant Pages

  • Re: Another PL/I cant
    ... >> One of the VAX extensions that predates the current standard by many ... >> and is supported by leading compilers, but not by a compiler choice made ... CVF fails to compile it. ...
    (comp.lang.fortran)
  • Re: Segmentation fault caused by write(6,*)
    ... That's a messy area finally at least helped by f2003. ... current compilers. ... There are big reasons to want to use a unit number in some codes. ... subroutine sub ...
    (comp.lang.fortran)
  • Re: Problem bei make
    ... Die "Tabellen" oder aehnliche Dinge der konkreten Implementierung ... jeweiligen Compilers (bzw. des von ihm erzeugten Codes). ...
    (de.comp.os.unix.linux.misc)
  • Re: GCC options to mimic Fortran assumptions?
    ... > A number of people seem to think that Fortran is often faster than C ... > for numerical codes because Fortran compilers can make assumptions ... Does GCC have compiler optimization switches ...
    (comp.lang.fortran)
  • Re: cross chatter
    ... > variable can be compatible with code from all these C compilers. ... I don't think you understand the intended application of the C interop ... Buried in there is the requirement that the Fortran compiler know things ... I will be able to write my codes completely in Fortran. ...
    (comp.lang.fortran)