- #1
MathematicalPhysicist
Gold Member
- 4,695
- 373
So I have a Ubuntu machine with gfortran installed in it.
I wrote the following simple code in fortran:
I saved it as 'calculation.f' file and then tried to compile it in the terminal, but got the following errors:
Where did I go wrong here?
Thanks.
I wrote the following simple code in fortran:
Fortran:
program calculation
print *, 55+55
end program calculation
Code:
calculation.f:1:1:
program calculation
1
Error: Non-numeric character in statement label at (1)
calculation.f:1:1:
program calculation
1
Error: Unclassifiable statement at (1)
calculation.f:3:1:
end program calculation
1
Error: Non-numeric character in statement label at (1)
calculation.f:3:1:
end program calculation
1
Error: Unclassifiable statement at (1)
f951: Error: Unexpected end of file in ‘calculation.f’
Thanks.