Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all articles
Browse latest Browse all 5691

How to do the same as showed in G95

$
0
0

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.


Viewing all articles
Browse latest Browse all 5691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>