I have a source, exe program compiled by G95 used :
G95 *.f03 mainlib.a
where the mainlib.a is a compact index of a lot of subroutines and compiled as the following:
G95 -c *.f03 *.o
ar -r mainlib.a *.o
The mainlib.f03 shown as following:
MODULE main
!
INTERFACE
!
SUBROUTINE mesh(g_coord,g_num,ips)
!
! this subroutine draw the finite element mesh
!
IMPLICIT NONE
REAL,INTENT(IN)::g_coord(:,:)
INTEGER,INTENT(IN)::g_num(:,:),ips
END SUBROUTINE mesh
!
SUBROUTINE interp(k,dt,rt,rl,al,ntp)
.
.
.
END SUBROUTINE interp
!
END INTERFACE
!
END MODULE MAIN
I want know how to compile this exe in Intel Fortran. The mainlib.a is not a library and I do not know how to link it with other Fortran program.