Dear forum members,
I have a question about where and when the /Qmxl compiler switch must be used to ensure that the MXL subroutine library is linked to an application.
I am developing a static library (MYLIB.lib). A number of the modules in the library contain subroutines that make calls LAPACK or BLAS subroutines (e.g. MYSUBA in FILEA.f90, MYSUBB in FILEB.f90, etc.).
A main program (MYPROG in PROGFILE.f90) then makes calls to subroutines in MYLIB. MYPROG indirectly calls LAPACK and BLAS subroutines via calls in MYLIB.
Do I need to use the /Qmxl compiler switch with every source code file that contains a call to an MXL routine (i.e. FILEA.f90, FILEB.f90, etc); or is it sufficient, say, to compile the main program (PROGFILE.f90) only with the /Qmxl switch?
I find it quite confusing why it is necessary to use /Qmxl during compilation when, ultimately, the objective is to link the MXL library with the code.
Thank you,
David.