Error when compiling Intel Fortran 2013.2.146 on Ubuntu 12.04

Error when compiling Intel Fortran 2013.2.146 on Ubuntu 12.04

Dear All,

I have install UBUNTU 12.04 (64bit) and Intel Fortran Comper 2013.12.146 and when i try to ru simple program try1.f

print*, 'Hello World!'

I get the following error: Will this be due to path incorrectly defined on ~/.bashrc file?

Please Assist. Thanks

fulufhelo@Biomech-FJMM:~$ ifort try1.f
try1.f(1): error #5149: Illegal character in statement label field  [p]
print*, 'We got it now'
^
try1.f(1): error #5149: Illegal character in statement label field  [r]
print*, 'We got it now'
-^
try1.f(1): error #5149: Illegal character in statement label field  [i]
print*, 'We got it now'
--^
try1.f(1): error #5149: Illegal character in statement label field  [n]
print*, 'We got it now'
---^
try1.f(1): error #5149: Illegal character in statement label field  [t]
print*, 'We got it now'
----^
try1.f(1): error #5118: First statement in file must not be continued
print*, 'We got it now'
-----^
try1.f(1): error #5082: Syntax error, found ',' when expecting one of: <LABEL> <END-OF-STATEMENT> ; BLOCK BLOCKDATA PROGRAM MODULE TYPE INTEGER REAL ...
print*, 'We got it now'
------^
try1.f(1): catastrophic error: Could not recover from previous syntax error

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

It looks as if you have free-form source but have named the file with a .f file type, which means fixed-form source. Or, you may have transcribed fixed-form source but omitted the required leading blanks.

Try renaming the source file to a .f90 file type and see if that works.

Steve - Intel Developer Support

Leave a Comment

Please sign in to add a comment. Not a member? Join today