windowsfortranlibrary-pathlinker-flagsintel-fortran

Windows ifort linker library path


Is there a possiblity (an environment variable or a flag) to tell the Intel Fortran linker

ifort ... mylib.lib

to search for libraries in a specified directory before searching the standard directories on Windows (similar to -L on Linux or link/LIBPATH flag)?


Solution

  • Use ifort xxxx /link /LIBPATH:dir to pass that option through to the linker, or add the directory to the the LIB environment variable.