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

F77 and F90 with ifort compiler

isml
Beginner
1,605 Views
Hi,

I am beginner at Linux and also do not have a big experience in fortran. I try to use Fortran 77 external subroutine (ODE solver vode.f from the Netlib Repository) for my Fortran 90 code. How should I correctly compile and link them with ifort 8.0 compiler?

Thanks,
Ismail
0 Kudos
1 Reply
Steven_L_Intel1
Employee
1,605 Views
Here's what I would recommend:

ifort -c vode.f
ifort -o myprog myprog.f90 vode.o

Mixing fixed and free-form source on a single command often causes problems, so compile the fixed-form source separately.
0 Kudos
Reply