Tells the C/C++ compiler driver to link to the Fortran libraries. This option is primarily used by C/C++ for mixed-language programming.
Linux: | -fortlib |
Windows: | None |
None
OFF |
C/C++ compiler drivers do not link to Fortran libraries. |
This option tells the C/C++ compiler driver to link to the Fortran libraries. This option is primarily used by C/C++ for mixed-language programming.
It is useful for building mixed Fortran and C/C++ applications, and it is only effective at link time.
None
Consider that a C/C++ program contains the following lines:
icx mymain.c -c … ifx sub1.f90 -c icx -fortlib mymain.o sub1.o
In this case, the C/C++ program will link to the Fortran libraries at link-time.