Where is the error in a Gfortran file?
Hi there. My environment is: Win 7==>Oracle VB=>>Ubuntu==>Gfortran. I am trying to restore my previous FORTRAN skills starting with something elementary. This is the code:
Code:
#Attempt to read a few files in the directory and compare the values Code:
fortran_1.f08:6.16: Thanks, - Alex P.S. Also Is there a description of all error codes for GFortran? |
OK, I found the error:
The read statement should have been: read(1,900), that's it. "unit" killed it. The same is of course true for the write statement. The last unresolved issue I have is a warning: illegal preprocessing directive. It does not say what kind. I really do not have any. Thanks. |
Yes you do - your first line. You use '!' to denote comments in Fortran, not '#'.
|
Wow, it worked! It may be the most valuable suggestion I have received here for some time. Appreciate it. Thanks.
|
All times are GMT -5. The time now is 03:14 PM. |