- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
print*, 'We got it now'
^
try1.f(1): error #5149: Illegal character in statement label field
print*, 'We got it now'
-^
try1.f(1): error #5149: Illegal character in statement label field
print*, 'We got it now'
--^
try1.f(1): error #5149: Illegal character in statement label field
print*, 'We got it now'
---^
try1.f(1): error #5149: Illegal character in statement label field
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page