I just want to enter a pause statement in the code without using terminal so I can verify values for variables, etc. Like the use of the exclamation mark in MATLAB.
Is there no such thing?
I have removed all lines containing common and the code compiles.
#1. Is common a redundant feature?
#2. I get results but with error:
Program received signal SIGSEGV: Segmentation fault - invalid memory reference.
Backtrace for this error:
#3.
write(6,*) '======================='...
So back to the other posts:
I should remove all the 'pause' statements and recompile without free form.
And back to the other error:
filename.f:395.16:
common/op/help,constant1,constant2,a1,b1,a2,b2,n2
1
I will paste part of the source code as expected...
Does what start in column 7?
I am using Gedit, at the bottom right hand side it says Fortran 95.
There is no option for Fortran 77.
Do you advise indenting my code?
gfortran testcode.exe testcode.f
program HelloWorld
write (*,*) 'Hello, world!' ! This is an inline comment
end program HelloWorld
I get the following:
testcode.f:1.2:
program HelloWorld
1
Error: Non-numeric character in statement label at (1)
testcode.f:1.2:
program HelloWorld...
Hi FJacq,
from the above posts, this is a F77 program. I'm sure it worked at some point without error.
filename.f:427.19:
subroutine myownfxn(x,y)
2
Error: COMMON block 'myownfxn' at (1) uses the same global identifier as entity at (2)
---------------------------------------------------
Do I...
Hi xwb,
thanks for your help.
That seems to have resolved some of the errors, now I receive the following messages:
filename.f:42.72:
pause
1
Warning: Deleted feature: PAUSE statement at (1)
What does this...
I believe the issue comes with the existing comments:
c ---
c --- blah
c --- blah
c --- blah
c --- blah
c ---
Do you know if the original files were compiled in F77 F90 or F95?
I'm using gfortran.
Hi all, it's been a long time since I touched Fortran.
I am trying to compile old Fortran (.f) files.
I am using Gygwin executing the following command:
gfortran -ffree-form -o filename.exe filename.f
I get the following error over 25 times:
Error: Unclassifiable statement at (1)
I'm not...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.