This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
fortran 90
- From: Major A <andras at users dot sourceforge dot net>
- To: gcc-help at gcc dot gnu dot org
- Date: Sun, 20 Jan 2002 15:41:25 +0000
- Subject: fortran 90
Hi,
I'm new to this list, so please forgive me if I ask something already
discussed before.
I would like to compile a program written (to a large extent) by
others in fortran 90. It works fine with Compaq's compiler on an
alpha, but I would also like to compile it on an x86 machine. GNU
fortran, however, gives numerous error messages (regardless of whether
-ff90 is specified), the first few being
bandfit7.f: In program `MAIN__':
bandfit7.f:3:
real*8,allocatable,dimension(:):: y,obj,dum,ftemp,bocc,f,g
^
Invalid type-declaration attribute at (^) -- must be one of: DIMENSION(array-spe
c), EXTERNAL, INTRINSIC, PARAMETER, or SAVE
bandfit7.f:3:
real*8,allocatable,dimension(:):: y,obj,dum,ftemp,bocc,f,g
^
Expression at (^) has incorrect data type or rank for its context
bandfit7.f:3:
real*8,allocatable,dimension(:):: y,obj,dum,ftemp,bocc,f,g
^
Expression at (^) has incorrect data type or rank for its context
bandfit7.f:3:
real*8,allocatable,dimension(:):: y,obj,dum,ftemp,bocc,f,g
^
Fortran 90 feature at (^) unsupported
Am I doing something wrong, or does g77 really not support dynamic
arrays? In that case, is there an alternative to g77 that I should
use?
Thanks a lot,
Andras