In other life, I did a lot of Fortran programming. I needed to write a simple program to do something and, for the life of me, I can't get it to work. I've checked on-line, but to no avail.
What I show first is the simple source code. What I show next is the compilation error. I've scaled down the code to really focus in on the error, but I can't understand the compilation error.
program abc
implicit none
integer i,x(2)
do x(1)=1,2
end do
end program abc
-----------------------------------------
[t7600 test]$ f95 inverse.for
inverse.for:6.6:
do x(1)=1,2
1
Error: Unclassifiable statement at (1)
inverse.for:8.9:
end do
1
Error: Expecting END PROGRAM statement at (1)
------------------------------------------
Anything someone can do to help here would be appreciated.
Thank you,
DV
What I show first is the simple source code. What I show next is the compilation error. I've scaled down the code to really focus in on the error, but I can't understand the compilation error.
program abc
implicit none
integer i,x(2)
do x(1)=1,2
end do
end program abc
-----------------------------------------
[t7600 test]$ f95 inverse.for
inverse.for:6.6:
do x(1)=1,2
1
Error: Unclassifiable statement at (1)
inverse.for:8.9:
end do
1
Error: Expecting END PROGRAM statement at (1)
------------------------------------------
Anything someone can do to help here would be appreciated.
Thank you,
DV