Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

compilation error in fortran 8.0

bgokaraju
Beginner
399 Views
Hi,

I'm getting the following error in intel fortran 8.0 compiler over ubuntu 8.10 linux machine.
Could you please help me in resolving this.

balu@balu-laptop:~/Documents/seadas5.3/src/src/l2gen$ ifort -c -extend_source -convert big_endian -assume byterecl -save -O3 get_dem_height.for -o ./test1/test
fortcom: Error: Illegal character in statement label field
fortcom: Error: Illegal character in statement label field
fortcom: Error: Illegal character in statement label field
fortcom: Error: Illegal character in statement label field
fortcom: Error: Illegal character in statement label field
fortcom: Error: First statement in file must not be continued
fortcom: Error: get_dem_height.for, line 3: Syntax error, found END-OF-STATEMENT when expecting one of: ( % . = =>
SUBROUTINE get_dem_height( demfile, xlon, xlat, senz, sena,height, iret)
------------------------------------------------------------------------^
compilation aborted for get_dem_height.for (code 1)
0 Kudos
1 Reply
TimP
Honored Contributor III
399 Views
This looks like you set a source format option which conflicts with the way your source file is set up. extend_source would be a fixed form option, requiring fields such as SUBROUTINE to begin at column 7. .for file extension is not often used for free form source, but you can use it if you switch to -free.
0 Kudos
Reply