0

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)?

davidism
  • 121,510
  • 29
  • 395
  • 339
Peter Petrik
  • 9,701
  • 5
  • 41
  • 65

1 Answers1

2

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

IanH
  • 21,026
  • 2
  • 37
  • 59