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

Compiling Old Version Code

jhk1
Beginner
992 Views

I failed to compile a Fortran code written about 30 years ago using the Intel oneAPI Fortran compiler 2025 integrated with Visual Studio 2022.

I think that the compiling tools are too new to compile my code.

I may need an older version compiler to fit my code.

Please help me figure out a way to compile my code.

I can show my code if there is an appropriate way.

0 Kudos
1 Solution
GVautier
New Contributor III
898 Views

Nothing obviously odd in this code. Be sure to compile as fixed source form and it should work.

Post compilation errors if any.

View solution in original post

0 Kudos
9 Replies
andrew_4619
Honored Contributor III
962 Views
Old Fortran should always compile, that is a strength of Fortran. There can be illegal stuff in your code that an old compiler did not pick up. Show some errors or code.
0 Kudos
jhk1
Beginner
921 Views

The old version code has been uploaded herewith.

Thanks.

0 Kudos
GVautier
New Contributor III
899 Views

Nothing obviously odd in this code. Be sure to compile as fixed source form and it should work.

Post compilation errors if any.

0 Kudos
jhk1
Beginner
840 Views

It works.

Your advice is deeply appreciated.

0 Kudos
andrew_4619
Honored Contributor III
873 Views

compiles ok, no errors

0 Kudos
GVautier
New Contributor III
873 Views

With a second look, I found that for some lines there is a  tabulation as first character. They must be converted to 6 blanks

0 Kudos
andrew_4619
Honored Contributor III
871 Views

Yes the tabs are non-standard and are best removed  but it compiles...

 

0 Kudos
GVautier
New Contributor III
849 Views

There always is a risk that a text editor converts the tabs to 4 blanks and therefore the code will not be able to be compiled.

 

0 Kudos
jhk1
Beginner
839 Views

Thanks a lot for showing me a professional attitude.

0 Kudos
Reply