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
Principiante
1.549 Visualizações

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 Solução
GVautier
Novo colaborador III
1.455 Visualizações

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

Post compilation errors if any.

Ver solução na publicação original

9 Respostas
andrew_4619
Colaborador honorário III
1.519 Visualizações
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.
jhk1
Principiante
1.478 Visualizações

The old version code has been uploaded herewith.

Thanks.

GVautier
Novo colaborador III
1.456 Visualizações

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

Post compilation errors if any.

jhk1
Principiante
1.397 Visualizações

It works.

Your advice is deeply appreciated.

andrew_4619
Colaborador honorário III
1.430 Visualizações

compiles ok, no errors

GVautier
Novo colaborador III
1.430 Visualizações

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

andrew_4619
Colaborador honorário III
1.428 Visualizações

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

 

GVautier
Novo colaborador III
1.406 Visualizações

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.

 

jhk1
Principiante
1.396 Visualizações

Thanks a lot for showing me a professional attitude.

Responder