Hi Guys,
I am trying to migrate a GECOS (BULL SYSTEM) FORTRAN77 Code to Windows.I am using the Intel VF 9.1 compiler.
I am facing this peculiar error regarding the PRINT statement throught the code.
Pls help.
Piece of Code:
PRINT," TYPE 40-CHARACTER LABEL:"
READ(05,1070)COMMENT
PRINT," DO YOU WANT TO CHANGE THE WELD PARAMETERS (Y/N)?"
READ(05,1060)IFWELD ; IF(IFWELD.NE."Y")GO TO 20
PRINT," TYPE TRAILING EDGE WELD LENGTH (E1):"
READ(05,1060)E1
Error at each PRINT statement :
Error: Syntax error, found ',' when expecting one of: ( *
Thanks,
-Aditya
链接已复制
6 回复数
Quoting - adityaiitd
PRINT," TYPE 40-CHARACTER LABEL:"
the error info is pretty clear.
syntax
PRINT *[, io-list]
or
PRINT form[, io-list]
so if you print to console you need PRINT *, " TYPE 40-CHARACTER LABEL:"
A.
__________________
(edit)
It looks as if I replied with Les at the very same time.
Quoting - ArturGuzik
the error info is pretty clear.
syntax
PRINT *[, io-list]
or
PRINT form[, io-list]
so if you print to console you need PRINT *, " TYPE 40-CHARACTER LABEL:"
A.
__________________
(edit)
It looks as if I replied with Les at the very same time.
Thank you . I have also one more compilation error.
Code :
1060 FORMAT(V)
Error: This character is not valid in a format list.
Pls help.
-Aditya
Quoting - adityaiitd
1060 FORMAT(V)Error :
Error: This character is not valid in a format list.
You need to look at the documentation for the GECOS compiler to find out what FORMAT(V) does (it would appear to be an extention to Fortran 77 for that compiler)
Les
Quoting - Les Neilson
You need to look at the documentation for the GECOS compiler to find out what FORMAT(V) does (it would appear to be an extention to Fortran 77 for that compiler)
Les
These non-standard usages were precursors of f77.
I have my GECOS f66 manual (Fortran IV, 2nd edition, 1966) in front of me. It quotes liberally from IBM Fortran IV 1963 manual.